Class QValueValue
- java.lang.Object
 - 
- org.apache.jackrabbit.spi.commons.value.QValueValue
 
 
- 
- 
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)BinarygetBinary()Returns aBinaryrepresentation of this value.booleangetBoolean()Returns aBooleanrepresentation of this value.java.util.CalendargetDate()Returns aCalendarrepresentation of this value.java.math.BigDecimalgetDecimal()Returns aBigDecimalrepresentation of this value.doublegetDouble()Returns adoublerepresentation of this value.longgetLong()Returns alongrepresentation of this value.QValuegetQValue()Returns the embeddedQValue.java.io.InputStreamgetStream()Returns anInputStreamrepresentation of this value.java.lang.StringgetString()Returns aStringrepresentation of this value.intgetType()Returns thetypeof thisValue.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 RepositoryExceptionDescription copied from interface:ValueReturns aBooleanrepresentation of this value.- Specified by:
 getBooleanin interfaceValue- Returns:
 - A 
Booleanrepresentation of this value. - Throws:
 ValueFormatException- if conversion to aBooleanis not possible.RepositoryException- if another error occurs.- See Also:
 Value.getBoolean()
 
- 
getDecimal
public java.math.BigDecimal getDecimal() throws ValueFormatException, java.lang.IllegalStateException, RepositoryExceptionDescription copied from interface:ValueReturns aBigDecimalrepresentation of this value.- Specified by:
 getDecimalin interfaceValue- Returns:
 - A 
BigDecimalrepresentation of this value. - Throws:
 ValueFormatException- if conversion to aBigDecimalis not possible.RepositoryException- if another error occurs.java.lang.IllegalStateException- See Also:
 Value.getDecimal()
 
- 
getBinary
public Binary getBinary() throws RepositoryException
Description copied from interface:ValueReturns aBinaryrepresentation of this value. TheBinaryobject in turn provides methods to access the binary data itself. Uses the standard conversion to binary (see JCR specification).- Specified by:
 getBinaryin interfaceValue- Returns:
 - A 
Binaryrepresentation of this value. - Throws:
 RepositoryException- if an error occurs.- See Also:
 Value.getBinary()
 
- 
getDate
public java.util.Calendar getDate() throws RepositoryExceptionDescription copied from interface:ValueReturns aCalendarrepresentation of this value.The object returned is a copy of the stored value, so changes to it are not reflected in internal storage.
- Specified by:
 getDatein interfaceValue- Returns:
 - A 
Calendarrepresentation of this value. - Throws:
 ValueFormatException- if conversion to aCalendaris not possible.RepositoryException- if another error occurs.- See Also:
 Value.getDate()
 
- 
getDouble
public double getDouble() throws RepositoryExceptionDescription copied from interface:ValueReturns adoublerepresentation of this value.- Specified by:
 getDoublein interfaceValue- Returns:
 - A 
doublerepresentation of this value. - Throws:
 ValueFormatException- if conversion to adoubleis not possible.RepositoryException- if another error occurs.- See Also:
 Value.getDouble()
 
- 
getLong
public long getLong() throws RepositoryExceptionDescription copied from interface:ValueReturns alongrepresentation of this value.- Specified by:
 getLongin interfaceValue- Returns:
 - A 
longrepresentation of this value. - Throws:
 ValueFormatException- if conversion to anlongis not possible.RepositoryException- if another error occurs.- See Also:
 Value.getLong()
 
- 
getStream
public java.io.InputStream getStream() throws java.lang.IllegalStateException, RepositoryExceptionDescription copied from interface:ValueReturns anInputStreamrepresentation of this value. Uses the standard conversion to binary (see JCR specification).It is the responsibility of the caller to close the returned
InputStream.- Specified by:
 getStreamin interfaceValue- Returns:
 - An 
InputStreamrepresentation of this value. - Throws:
 RepositoryException- if an error occurs.java.lang.IllegalStateException- See Also:
 Value.getStream()
 
- 
getString
public java.lang.String getString() throws RepositoryExceptionDescription copied from interface:ValueReturns aStringrepresentation of this value.- Specified by:
 getStringin interfaceValue- Returns:
 - A 
Stringrepresentation of the value of this property. - Throws:
 ValueFormatException- if conversion to aStringis not possible.RepositoryException- if another error occurs.- See Also:
 Value.getString()
 
- 
getType
public int getType()
Description copied from interface:ValueReturns thetypeof thisValue. One of:PropertyType.STRINGPropertyType.DATEPropertyType.BINARYPropertyType.DOUBLEPropertyType.DECIMALPropertyType.LONGPropertyType.BOOLEANPropertyType.NAMEPropertyType.PATHPropertyType.REFERENCEPropertyType.WEAKREFERENCEPropertyType.URI
.PropertyTypeThe type returned is that which was set at property creation.
- Specified by:
 getTypein interfaceValue- Returns:
 - an int
 - 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()
 
 - 
 
 -