public abstract class BaseValue extends Object implements javax.jcr.Value
Value interfaces.Value,
StringValue,
LongValue,
DoubleValue,
DecimalValue,
BooleanValue,
DateValue,
BinaryValue,
NameValue,
PathValue,
URIValue,
ReferenceValue,
WeakReferenceValue| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_ENCODING |
protected InputStream |
stream |
protected int |
type |
| Modifier and Type | Method and Description |
|---|---|
javax.jcr.Binary |
getBinary() |
boolean |
getBoolean() |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
double |
getDouble() |
protected abstract String |
getInternalString()
Returns the internal string representation of this value without modifying
the value state.
|
long |
getLong() |
InputStream |
getStream() |
String |
getString() |
int |
getType() |
protected static final String DEFAULT_ENCODING
protected final int type
protected InputStream stream
protected abstract String getInternalString() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
javax.jcr.ValueFormatException - if the value can not be represented as a
String or if the value is
null.javax.jcr.RepositoryException - if another error occurs.public int getType()
getType in interface javax.jcr.Valuepublic Calendar getDate() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDate in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic long getLong()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getLong in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic boolean getBoolean()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getBoolean in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic double getDouble()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getDouble in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic BigDecimal getDecimal() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDecimal in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic InputStream getStream() throws IllegalStateException, javax.jcr.RepositoryException
getStream in interface javax.jcr.ValueIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Binary getBinary()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getBinary in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic String getString() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getString in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.