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 Value
ValueFormatException
IllegalStateException
RepositoryException
public long getLong() throws ValueFormatException, IllegalStateException, RepositoryException
getLong
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
public boolean getBoolean() throws ValueFormatException, IllegalStateException, RepositoryException
getBoolean
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
public double getDouble() throws ValueFormatException, IllegalStateException, RepositoryException
getDouble
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
public BigDecimal getDecimal() throws ValueFormatException, IllegalStateException, RepositoryException
getDecimal
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
public InputStream getStream() throws IllegalStateException, RepositoryException
getStream
in interface Value
IllegalStateException
RepositoryException
public Binary getBinary() throws ValueFormatException, IllegalStateException, RepositoryException
getBinary
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
public String getString() throws ValueFormatException, IllegalStateException, RepositoryException
getString
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
Copyright © 2004–2024 The Apache Software Foundation. All rights reserved.