public abstract class AbstractQValue extends java.lang.Object implements QValue, java.io.Serializable
AbstractQValue...EMPTY_ARRAY| Modifier and Type | Method and Description |
|---|---|
void |
discard()
Frees temporarily allocated resources such as temporary file, buffer, etc.
|
boolean |
equals(java.lang.Object obj)
Default implementation of the equals method.
|
Binary |
getBinary()
This implementation creates a binary instance that uses
QValue.getStream() and skipping on the given stream as its underlying
mechanism to provide random access defined on Binary. |
boolean |
getBoolean()
Returns a
boolean representation of this value. |
java.util.Calendar |
getCalendar()
Returns a
Calendar representation of this value. |
java.math.BigDecimal |
getDecimal()
Returns a
BigDecimal representation of this value. |
double |
getDouble()
Returns a
double representation of this value. |
long |
getLength()
Returns the length of the internal value or -1 if the implementation
cannot determine the length at this time.
NOTE: for PropertyType.NAME and PropertyType.PATH the
length of the internal value must not be used for indicating the length
of a property such as retrieved by calling Property.getLength()
and Property.getLengths(). |
long |
getLong()
Returns a
long representation of this value. |
Name |
getName()
Returns a
Name representation of this value. |
Path |
getPath()
Returns a
Path representation of this value. |
java.lang.String |
getString()
Returns a
String representation of this QValue
object. |
int |
getType()
Returns the
PropertyType of this QValue object. |
java.net.URI |
getURI()
Returns an
URI representation of this value. |
int |
hashCode()
Default calculation of the hashCode.
|
java.lang.String |
toString()
Returns the string representation of this internal value.
|
public int getType()
QValuePropertyType of this QValue object.
It may be either of the value property types defined by the JSR 283:
getType in interface QValuePropertyType of this QValue object.QValue.getType()public long getLength()
throws RepositoryException
QValuePropertyType.NAME and PropertyType.PATH the
length of the internal value must not be used for indicating the length
of a property such as retrieved by calling Property.getLength()
and Property.getLengths().getLength in interface QValueQValue object.RepositoryExceptionQValue.getLength()public Name getName() throws RepositoryException
QValueName representation of this value.getName in interface QValueName representation of this value.RepositoryException - if an error occurs.QValue.getName()public java.util.Calendar getCalendar()
throws RepositoryException
QValueCalendar representation of this value.getCalendar in interface QValueCalendar representation of this value.RepositoryException - if an error occurs.QValue.getCalendar()public java.math.BigDecimal getDecimal()
throws RepositoryException
QValueBigDecimal representation of this value.getDecimal in interface QValueBigDecimal representation of this value.RepositoryException - if an error occurs.QValue.getDecimal()public java.net.URI getURI()
throws RepositoryException
QValueURI representation of this value.getURI in interface QValueURI representation of this value.RepositoryException - if an error occurs.QValue.getURI()public double getDouble()
throws RepositoryException
QValuedouble representation of this value.getDouble in interface QValuedouble representation of this value.RepositoryException - if an error occurs.QValue.getDouble()public long getLong()
throws RepositoryException
QValuelong representation of this value.getLong in interface QValuelong representation of this value.RepositoryException - if an error occurs.QValue.getLong()public boolean getBoolean()
throws RepositoryException
QValueboolean representation of this value.getBoolean in interface QValueboolean representation of this value.RepositoryExceptionQValue.getBoolean()public Path getPath() throws RepositoryException
QValuePath representation of this value.getPath in interface QValuePath representation of this value.RepositoryException - if an error occurs.QValue.getPath()public java.lang.String getString()
throws RepositoryException
QValueString representation of this QValue
object.getString in interface QValueString representation of this QValue
object.RepositoryExceptionQValue.getPath()public Binary getBinary() throws RepositoryException
QValue.getStream() and skipping on the given stream as its underlying
mechanism to provide random access defined on Binary.getBinary in interface QValueBinary representation of this value.RepositoryExceptionQValue.getBinary()public void discard()
QValuediscard in interface QValueQValue.discard()public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - Object.equals(Object)public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()Copyright © 2010 - 2023 Adobe. All Rights Reserved