public class ReferenceValue
extends java.lang.Object
ReferenceValue class implements the committed value state
for Reference values as a part of the State design pattern (Gof) used by
this package.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object object)
Compares values as defined in the JCR specification.
|
Binary |
getBinary()
Returns the binary representation of this value.
|
boolean |
getBoolean()
Always throws a
ValueFormatException. |
java.util.Calendar |
getDate()
Always throws a
ValueFormatException. |
java.math.BigDecimal |
getDecimal()
Always throws a
ValueFormatException. |
double |
getDouble()
Always throws a
ValueFormatException. |
long |
getLong()
Always throws a
ValueFormatException. |
java.io.InputStream |
getStream()
Returns the stream representation of this value.
|
java.lang.String |
getString()
Returns the string representation of the reference value.
|
int |
getType()
Returns
PropertyType.REFERENCE. |
int |
hashCode()
Returns a hash code that's in line with how the
equals(Object)
method is implemented. |
java.lang.String |
toString()
Returns a string representation of this value.
|
public int getType()
PropertyType.REFERENCE.public java.lang.String getString()
throws ValueFormatException,
RepositoryException
ValueFormatExceptionRepositoryExceptionpublic final java.io.InputStream getStream()
throws RepositoryException
Binary instance
returned by getBinary().RepositoryException - if the stream can not be createdpublic Binary getBinary()
throws RepositoryException
#getString(). SubclassesRepositoryExceptionpublic boolean getBoolean()
throws ValueFormatException
ValueFormatException. Implementations should
overwrite if conversion to boolean is supported.ValueFormatException - If the value cannot be converted to a
boolean.public java.util.Calendar getDate()
throws ValueFormatException
ValueFormatException. Implementations should
overwrite if conversion to Calender is supported.ValueFormatException - If the value cannot be converted to a
Calendar instance.public java.math.BigDecimal getDecimal()
throws RepositoryException
ValueFormatException. Implementations should
overwrite if conversion to a BigDecimal is supported.ValueFormatException - If the value cannot be converted to a
BigDecimal.RepositoryExceptionpublic double getDouble()
throws ValueFormatException
ValueFormatException. Implementations should
overwrite if conversion to double is supported.ValueFormatException - If the value cannot be converted to a
double.public long getLong()
throws ValueFormatException
ValueFormatException. Implementations should
overwrite if conversion to long is supported.ValueFormatException - If the value cannot be converted to a
long.public boolean equals(java.lang.Object object)
equals in class java.lang.Objectobject - value for comparisontrue if the values are equal,
false otherwisepublic int hashCode()
equals(Object)
method is implemented.hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object"Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"