|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.value.BaseValue
public abstract class 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 java.lang.String |
DEFAULT_ENCODING
|
protected java.io.InputStream |
stream
|
protected int |
type
|
| Method Summary | |
|---|---|
boolean |
getBoolean()
|
java.util.Calendar |
getDate()
|
double |
getDouble()
|
protected abstract java.lang.String |
getInternalString()
Returns the internal string representation of this value without modifying the value state. |
long |
getLong()
|
java.io.InputStream |
getStream()
|
java.lang.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 java.lang.String DEFAULT_ENCODING
protected final int type
protected java.io.InputStream stream
| Method Detail |
|---|
protected void setStreamConsumed()
throws java.lang.IllegalStateException
getStream() and
getType() have been previously called at least once) and
sets the state to STATE_STREAM_CONSUMED.
java.lang.IllegalStateException - if any getter methods other than
getStream() and
getType() have been
previously called at least once.
protected void setValueConsumed()
throws java.lang.IllegalStateException
getStream() has been previously called
at least once) and sets the state to STATE_VALUE_CONSUMED.
java.lang.IllegalStateException - if getStream() has been
previously called at least once.
protected abstract java.lang.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.Value
public java.util.Calendar getDate()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getDate in interface javax.jcr.Valuejavax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public long getLong()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getLong in interface javax.jcr.Valuejavax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public boolean getBoolean()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getBoolean in interface javax.jcr.Valuejavax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public double getDouble()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getDouble in interface javax.jcr.Valuejavax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
public java.io.InputStream getStream()
throws java.lang.IllegalStateException,
javax.jcr.RepositoryException
getStream in interface javax.jcr.Valuejava.lang.IllegalStateException
javax.jcr.RepositoryException
public java.lang.String getString()
throws javax.jcr.ValueFormatException,
java.lang.IllegalStateException,
javax.jcr.RepositoryException
getString in interface javax.jcr.Valuejavax.jcr.ValueFormatException
java.lang.IllegalStateException
javax.jcr.RepositoryException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||