public interface QValue
QValue
is the SPI representation of a
jcr value
. It therefore refers to Name
s
and Path
s only and is thus isolated from session-specific
namespace mappings.Modifier and Type | Field and Description |
---|---|
static QValue[] |
EMPTY_ARRAY |
Modifier and Type | Method and Description |
---|---|
void |
discard()
Frees temporarily allocated resources such as temporary file, buffer, etc.
|
javax.jcr.Binary |
getBinary()
Returns a
Binary representation of this QValue
object. |
boolean |
getBoolean()
Returns a
boolean representation of this value. |
Calendar |
getCalendar()
Returns a
Calendar representation of this value. |
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. |
InputStream |
getStream()
Returns an
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. |
URI |
getURI()
Returns an
URI representation of this value. |
static final QValue[] EMPTY_ARRAY
int getType()
PropertyType
of this QValue
object.
It may be either of the value property types defined by the JSR 283:
PropertyType.STRING
PropertyType.BINARY
PropertyType.BOOLEAN
PropertyType.DATE
PropertyType.DECIMAL
PropertyType.DOUBLE
PropertyType.LONG
PropertyType.NAME
PropertyType.PATH
PropertyType.REFERENCE
PropertyType.URI
PropertyType.WEAKREFERENCE
PropertyType
of this QValue
object.long getLength() throws javax.jcr.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.javax.jcr.RepositoryException
String getString() throws javax.jcr.RepositoryException
String
representation of this QValue
object.String
representation of this QValue
object.javax.jcr.RepositoryException
InputStream getStream() throws javax.jcr.RepositoryException
InputStream
representation of this QValue
object. This method always returns a new stream.javax.jcr.RepositoryException
javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException
Binary
representation of this QValue
object.Binary
representation of this value.javax.jcr.RepositoryException
Calendar getCalendar() throws javax.jcr.RepositoryException
Calendar
representation of this value.Calendar
representation of this value.javax.jcr.RepositoryException
- if an error occurs.BigDecimal getDecimal() throws javax.jcr.RepositoryException
BigDecimal
representation of this value.BigDecimal
representation of this value.javax.jcr.RepositoryException
- if an error occurs.double getDouble() throws javax.jcr.RepositoryException
double
representation of this value.double
representation of this value.javax.jcr.RepositoryException
- if an error occurs.long getLong() throws javax.jcr.RepositoryException
long
representation of this value.long
representation of this value.javax.jcr.RepositoryException
- if an error occurs.boolean getBoolean() throws javax.jcr.RepositoryException
boolean
representation of this value.boolean
representation of this value.javax.jcr.RepositoryException
- if an error occurs.Name getName() throws javax.jcr.RepositoryException
Name
representation of this value.Name
representation of this value.javax.jcr.RepositoryException
- if an error occurs.Path getPath() throws javax.jcr.RepositoryException
Path
representation of this value.Path
representation of this value.javax.jcr.RepositoryException
- if an error occurs.URI getURI() throws javax.jcr.RepositoryException
URI
representation of this value.URI
representation of this value.javax.jcr.RepositoryException
- if an error occurs.void discard()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.