|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 ValueValueFormatExceptionValue.getBoolean()
public Calendar getDate()
throws ValueFormatException
getDate in interface ValueValueFormatExceptionValue.getDate()
public BigDecimal getDecimal()
throws ValueFormatException,
RepositoryException
getDecimal in interface ValueValueFormatException
RepositoryExceptionValue.getDecimal()
public double getDouble()
throws ValueFormatException
getDouble in interface ValueValueFormatExceptionValue.getDouble()
public long getLong()
throws ValueFormatException
getLong in interface ValueValueFormatExceptionValue.getLong()
public InputStream getStream()
throws ValueFormatException
getStream in interface ValueValueFormatExceptionValue.getStream()
public Binary getBinary()
throws RepositoryException
getBinary in interface ValueRepositoryExceptionValue.getBinary()
public String getString()
throws ValueFormatException
getString in interface ValueValueFormatExceptionValue.getString()public int getType()
getType in interface ValueValue.getType()public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.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 | |||||||||