|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface QValue
QValue is the qualified SPI representation of a
jcr value. It therefore refers to Names
and Paths only and is thus isolated from session-specific
namespace mappings.
| Field Summary | |
|---|---|
static QValue[] |
EMPTY_ARRAY
|
| Method Summary | |
|---|---|
void |
discard()
Frees temporarily allocated resources such as temporary file, buffer, etc. |
boolean |
getBoolean()
Returns a boolean representation of this value. |
Calendar |
getCalendar()
Returns a Calendar 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. |
InputStream |
getStream()
Returns a InputStream representation of this QValue
object. |
String |
getString()
Returns a String representation of this QValue
object. |
int |
getType()
Returns the PropertyType of this QValue object. |
| Field Detail |
|---|
static final QValue[] EMPTY_ARRAY
| Method Detail |
|---|
int getType()
PropertyType of this QValue object.
It may be either of the value property types defined by the JSR 170:
PropertyType.BINARYPropertyType.BOOLEANPropertyType.DATEPropertyType.DOUBLEPropertyType.LONGPropertyType.NAMEPropertyType.PATHPropertyType.REFERENCEPropertyType.STRING
PropertyType of this QValue object.
long getLength()
throws RepositoryException
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().
QValue object.
RepositoryException
String getString()
throws RepositoryException
String representation of this QValue
object.
String representation of this QValue
object.
RepositoryException
InputStream getStream()
throws RepositoryException
InputStream representation of this QValue
object.
RepositoryException
Calendar getCalendar()
throws RepositoryException
Calendar representation of this value.
Calendar representation of this value.
RepositoryException - if an error occurs.
double getDouble()
throws RepositoryException
double representation of this value.
double representation of this value.
RepositoryException - if an error occurs.
long getLong()
throws RepositoryException
long representation of this value.
long representation of this value.
RepositoryException - if an error occurs.
boolean getBoolean()
throws RepositoryException
boolean representation of this value.
boolean representation of this value.
RepositoryException - if an error occurs.
Name getName()
throws RepositoryException
Name representation of this value.
Name representation of this value.
RepositoryException - if an error occurs.
Path getPath()
throws RepositoryException
Path representation of this value.
Path representation of this value.
RepositoryException - if an error occurs.void discard()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||