public abstract class BaseValue extends Object implements Value
Value interfaces.| Modifier and Type | Field and Description |
|---|---|
protected static String |
DEFAULT_ENCODING |
protected InputStream |
stream |
protected int |
type |
| Modifier and Type | Method and Description |
|---|---|
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 ValueFormatException, RepositoryException
ValueFormatException - if the value can not be represented as a
String or if the value is
null.RepositoryException - if another error occurs.public Calendar getDate() throws ValueFormatException, IllegalStateException, RepositoryException
getDate in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionpublic long getLong()
throws ValueFormatException,
IllegalStateException,
RepositoryException
getLong in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionpublic boolean getBoolean()
throws ValueFormatException,
IllegalStateException,
RepositoryException
getBoolean in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionpublic double getDouble()
throws ValueFormatException,
IllegalStateException,
RepositoryException
getDouble in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionpublic BigDecimal getDecimal() throws ValueFormatException, IllegalStateException, RepositoryException
getDecimal in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionpublic InputStream getStream() throws IllegalStateException, RepositoryException
getStream in interface ValueIllegalStateExceptionRepositoryExceptionpublic Binary getBinary() throws ValueFormatException, IllegalStateException, RepositoryException
getBinary in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionpublic String getString() throws ValueFormatException, IllegalStateException, RepositoryException
getString in interface ValueValueFormatExceptionIllegalStateExceptionRepositoryExceptionCopyright © 2004–2020 The Apache Software Foundation. All rights reserved.