public class ValueImpl extends java.lang.Object implements JackrabbitValue
Value based on PropertyState.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other) |
Binary |
getBinary() |
static Blob |
getBlob(Value value) |
boolean |
getBoolean() |
java.lang.String |
getContentIdentity()
Get a unique identifier of the content of this value.
|
java.util.Calendar |
getDate() |
java.math.BigDecimal |
getDecimal() |
double |
getDouble() |
long |
getLong() |
java.lang.String |
getOakString()
Same as
getString() unless that names and paths are returned in their
Oak representation instead of being mapped to their JCR representation. |
java.io.InputStream |
getStream() |
java.lang.String |
getString() |
int |
getType() |
int |
hashCode() |
java.lang.String |
toString() |
public static Blob getBlob(Value value) throws RepositoryException
RepositoryExceptionpublic java.lang.String getOakString()
throws RepositoryException
getString() unless that names and paths are returned in their
Oak representation instead of being mapped to their JCR representation.RepositoryExceptionpublic int getType()
javax.jcr.Value#getType()public boolean getBoolean()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getBoolean()public java.util.Calendar getDate()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getDate()public java.math.BigDecimal getDecimal()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getDecimal()public double getDouble()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getDouble()public long getLong()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getLong()public java.lang.String getString()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getString()public java.io.InputStream getStream()
throws java.lang.IllegalStateException,
RepositoryException
java.lang.IllegalStateExceptionRepositoryExceptionjavax.jcr.Value#getStream()public Binary getBinary()
throws RepositoryException
RepositoryExceptionjavax.jcr.Value#getBinary()public java.lang.String getContentIdentity()
JackrabbitValueThis method returns null if the identifier is unknown. The identifier may not always be available, for example if the value has not yet been saved or processed. Once an identifier is available, it will never change because values are immutable.
If two values have the same identifier, the content of the value is guaranteed to be the same. However it is not guaranteed that two values with the same content will return the same identifier.
The identifier is opaque, meaning it can have any format and size, however it is at normally about 50 characters and at most 255 characters long. The string only contains Unicode code points from 32 to 127 (including).
getContentIdentity in interface JackrabbitValuepublic boolean equals(java.lang.Object other)
equals in class java.lang.ObjectObject.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public java.lang.String toString()
toString in class java.lang.Object"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"