Package org.apache.jackrabbit.value
Class BaseValue
- java.lang.Object
-
- org.apache.jackrabbit.value.BaseValue
-
- All Implemented Interfaces:
javax.jcr.Value
- Direct Known Subclasses:
BinaryValue
,BooleanValue
,DateValue
,DecimalValue
,DoubleValue
,LongValue
,NameValue
,PathValue
,ReferenceValue
,StringValue
,URIValue
,WeakReferenceValue
public abstract class BaseValue extends java.lang.Object implements javax.jcr.Value
This class is the superclass of the type-specific classes implementing theValue
interfaces.- See Also:
Value
,StringValue
,LongValue
,DoubleValue
,DecimalValue
,BooleanValue
,DateValue
,BinaryValue
,NameValue
,PathValue
,URIValue
,ReferenceValue
,WeakReferenceValue
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.jcr.Binary
getBinary()
boolean
getBoolean()
java.util.Calendar
getDate()
java.math.BigDecimal
getDecimal()
double
getDouble()
long
getLong()
java.io.InputStream
getStream()
java.lang.String
getString()
int
getType()
-
-
-
Method Detail
-
getType
public int getType()
- Specified by:
getType
in interfacejavax.jcr.Value
-
getDate
public java.util.Calendar getDate() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
- Specified by:
getDate
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
-
getLong
public long getLong() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
- Specified by:
getLong
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
-
getBoolean
public boolean getBoolean() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
- Specified by:
getBoolean
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
-
getDouble
public double getDouble() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
- Specified by:
getDouble
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
-
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
-
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
-
getBinary
public javax.jcr.Binary getBinary() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
- Specified by:
getBinary
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
-
getString
public java.lang.String getString() throws javax.jcr.ValueFormatException, java.lang.IllegalStateException, javax.jcr.RepositoryException
- Specified by:
getString
in interfacejavax.jcr.Value
- Throws:
javax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
-
-