|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.modeshape.jcr.JcrValue
@NotThreadSafe public final class JcrValue
ModeShape implementation of a JCR Value
.
Method Summary | |
---|---|
protected Object |
convertToType(int type,
Object value)
|
boolean |
equals(Object obj)
|
Binary |
getBinary()
|
boolean |
getBoolean()
|
Calendar |
getDate()
|
BigDecimal |
getDecimal()
|
double |
getDouble()
|
long |
getLong()
|
InputStream |
getStream()
|
String |
getString()
|
int |
getType()
|
int |
hashCode()
|
String |
toString()
|
Object |
value()
Returns a direct reference to the internal value object wrapped by this JcrValue . |
protected Object |
valueToType(int type,
Value value)
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public final Object value()
JcrValue
. Useful to avoid the expense of
asType(int)
if the caller already knows the type of the value.
value
field.public boolean getBoolean() throws ValueFormatException
getBoolean
in interface Value
ValueFormatException
Value.getBoolean()
public Calendar getDate() throws ValueFormatException
getDate
in interface Value
ValueFormatException
Value.getDate()
public BigDecimal getDecimal() throws ValueFormatException, RepositoryException
getDecimal
in interface Value
ValueFormatException
RepositoryException
Value.getDecimal()
public double getDouble() throws ValueFormatException
getDouble
in interface Value
ValueFormatException
Value.getDouble()
public long getLong() throws ValueFormatException
getLong
in interface Value
ValueFormatException
Value.getLong()
public InputStream getStream() throws ValueFormatException
getStream
in interface Value
ValueFormatException
Value.getStream()
public Binary getBinary() throws RepositoryException
getBinary
in interface Value
RepositoryException
Value.getBinary()
public String getString() throws ValueFormatException
getString
in interface Value
ValueFormatException
Value.getString()
public int getType()
getType
in interface Value
Value.getType()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
protected Object valueToType(int type, Value value) throws RepositoryException
RepositoryException
protected Object convertToType(int type, Object value)
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |