|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.value.BaseValue
This class is the superclass of the type-specific
classes implementing the Value
interfaces.
Value
,
StringValue
,
LongValue
,
DoubleValue
,
BooleanValue
,
DateValue
,
BinaryValue
,
NameValue
,
PathValue
,
ReferenceValue
Field Summary | |
protected static String |
DEFAULT_ENCODING
|
protected InputStream |
stream
|
protected int |
type
|
Method Summary | |
boolean |
getBoolean()
|
Calendar |
getDate()
|
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 void |
setStreamConsumed()
Checks if the non-stream value of this instance has already been consumed (if any getter methods except and
have been previously called at least once) and
sets the state to STATE_STREAM_CONSUMED . |
protected void |
setValueConsumed()
Checks if the stream value of this instance has already been consumed (if getStream() has been previously called
at least once) and sets the state to STATE_VALUE_CONSUMED . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static final String DEFAULT_ENCODING
protected final int type
protected InputStream stream
Method Detail |
protected void setStreamConsumed() throws IllegalStateException
getStream()
and
getType()
have been previously called at least once) and
sets the state to STATE_STREAM_CONSUMED
.
IllegalStateException
- if any getter methods other than
getStream()
and
getType()
have been
previously called at least once.protected void setValueConsumed() throws IllegalStateException
getStream()
has been previously called
at least once) and sets the state to STATE_VALUE_CONSUMED
.
IllegalStateException
- if getStream()
has been
previously called at least once.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 int getType()
getType
in interface Value
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 InputStream getStream() throws IllegalStateException, RepositoryException
getStream
in interface Value
IllegalStateException
RepositoryException
public String getString() throws ValueFormatException, IllegalStateException, RepositoryException
getString
in interface Value
ValueFormatException
IllegalStateException
RepositoryException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |