Class QValueValue
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.value.QValueValue
-
- All Implemented Interfaces:
javax.jcr.Value
public final class QValueValue extends java.lang.Object implements javax.jcr.ValueAQValueValueprovides an implementation of theValueinterface representing an SPIQValue.
-
-
Constructor Summary
Constructors Constructor Description QValueValue(QValue qvalue, NamePathResolver resolver)Constructs aQValueValueobject representing an SPIQValue.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)javax.jcr.BinarygetBinary()booleangetBoolean()java.util.CalendargetDate()java.math.BigDecimalgetDecimal()doublegetDouble()longgetLong()QValuegetQValue()Returns the embeddedQValue.java.io.InputStreamgetStream()java.lang.StringgetString()intgetType()inthashCode()
-
-
-
Constructor Detail
-
QValueValue
public QValueValue(QValue qvalue, NamePathResolver resolver)
Constructs aQValueValueobject representing an SPIQValue.- Parameters:
qvalue- the QValue thisQValueValueshould representresolver- fore resolving namespace URIs to prefixes in NAME/PATH properties
-
-
Method Detail
-
getQValue
public QValue getQValue()
Returns the embeddedQValue.- Returns:
- the embedded
QValue
-
getBoolean
public boolean getBoolean() throws javax.jcr.RepositoryException- Specified by:
getBooleanin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException- See Also:
Value.getBoolean()
-
getDecimal
public java.math.BigDecimal getDecimal() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException- Specified by:
getDecimalin interfacejavax.jcr.Value- Throws:
javax.jcr.ValueFormatExceptionjava.lang.IllegalStateExceptionjavax.jcr.RepositoryException- See Also:
Value.getDecimal()
-
getBinary
public javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException- Specified by:
getBinaryin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException- See Also:
Value.getBinary()
-
getDate
public java.util.Calendar getDate() throws javax.jcr.RepositoryException- Specified by:
getDatein interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException- See Also:
Value.getDate()
-
getDouble
public double getDouble() throws javax.jcr.RepositoryException- Specified by:
getDoublein interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException- See Also:
Value.getDouble()
-
getLong
public long getLong() throws javax.jcr.RepositoryException- Specified by:
getLongin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException- See Also:
Value.getLong()
-
getStream
public java.io.InputStream getStream() throws java.lang.IllegalStateException, javax.jcr.RepositoryException- Specified by:
getStreamin interfacejavax.jcr.Value- Throws:
java.lang.IllegalStateExceptionjavax.jcr.RepositoryException- See Also:
Value.getStream()
-
getString
public java.lang.String getString() throws javax.jcr.RepositoryException- Specified by:
getStringin interfacejavax.jcr.Value- Throws:
javax.jcr.RepositoryException- See Also:
Value.getString()
-
getType
public int getType()
- Specified by:
getTypein interfacejavax.jcr.Value- See Also:
Value.getType()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object- See Also:
Object.hashCode()
-
-