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.Value
AQValueValue
provides an implementation of theValue
interface representing an SPIQValue
.
-
-
Constructor Summary
Constructors Constructor Description QValueValue(QValue qvalue, NamePathResolver resolver)
Constructs aQValueValue
object representing an SPIQValue
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
javax.jcr.Binary
getBinary()
boolean
getBoolean()
java.util.Calendar
getDate()
java.math.BigDecimal
getDecimal()
double
getDouble()
long
getLong()
QValue
getQValue()
Returns the embeddedQValue
.java.io.InputStream
getStream()
java.lang.String
getString()
int
getType()
int
hashCode()
-
-
-
Constructor Detail
-
QValueValue
public QValueValue(QValue qvalue, NamePathResolver resolver)
Constructs aQValueValue
object representing an SPIQValue
.- Parameters:
qvalue
- the QValue thisQValueValue
should 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:
getBoolean
in 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:
getDecimal
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
- See Also:
Value.getDecimal()
-
getBinary
public javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException
- Specified by:
getBinary
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
- See Also:
Value.getBinary()
-
getDate
public java.util.Calendar getDate() throws javax.jcr.RepositoryException
- Specified by:
getDate
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
- See Also:
Value.getDate()
-
getDouble
public double getDouble() throws javax.jcr.RepositoryException
- Specified by:
getDouble
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
- See Also:
Value.getDouble()
-
getLong
public long getLong() throws javax.jcr.RepositoryException
- Specified by:
getLong
in 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:
getStream
in interfacejavax.jcr.Value
- Throws:
java.lang.IllegalStateException
javax.jcr.RepositoryException
- See Also:
Value.getStream()
-
getString
public java.lang.String getString() throws javax.jcr.RepositoryException
- Specified by:
getString
in interfacejavax.jcr.Value
- Throws:
javax.jcr.RepositoryException
- See Also:
Value.getString()
-
getType
public int getType()
- Specified by:
getType
in interfacejavax.jcr.Value
- See Also:
Value.getType()
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
- See Also:
Object.equals(Object)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
- See Also:
Object.hashCode()
-
-