Package org.apache.jackrabbit.spi
Interface QValue
- All Known Implementing Classes:
AbstractQValue,DefaultQValue
public interface QValue
QValue is the 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
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoiddiscard()Frees temporarily allocated resources such as temporary file, buffer, etc.Returns aBinaryrepresentation of thisQValueobject.booleanReturns abooleanrepresentation of this value.Returns aCalendarrepresentation of this value.Returns aBigDecimalrepresentation of this value.doubleReturns adoublerepresentation of this value.longReturns the length of the internal value or -1 if the implementation cannot determine the length at this time.
NOTE: forPropertyType.NAMEandPropertyType.PATHthe length of the internal value must not be used for indicating the length of a property such as retrieved by callingProperty.getLength()andProperty.getLengths().longgetLong()Returns alongrepresentation of this value.getName()Returns aNamerepresentation of this value.getPath()Returns aPathrepresentation of this value.Returns anInputStreamrepresentation of thisQValueobject.Returns aStringrepresentation of thisQValueobject.intgetType()Returns thePropertyTypeof thisQValueobject.getURI()Returns anURIrepresentation of this value.
-
Field Details
-
EMPTY_ARRAY
-
-
Method Details
-
getType
int getType()Returns thePropertyTypeof thisQValueobject. It may be either of the value property types defined by the JSR 283:- Returns:
- the
PropertyTypeof thisQValueobject.
-
getLength
Returns the length of the internal value or -1 if the implementation cannot determine the length at this time.
NOTE: forPropertyType.NAMEandPropertyType.PATHthe length of the internal value must not be used for indicating the length of a property such as retrieved by callingProperty.getLength()andProperty.getLengths().- Returns:
- length of this
QValueobject. - Throws:
RepositoryException
-
getString
Returns aStringrepresentation of thisQValueobject.- Returns:
- A
Stringrepresentation of thisQValueobject. - Throws:
RepositoryException
-
getStream
Returns anInputStreamrepresentation of thisQValueobject. This method always returns a new stream.- Returns:
- A stream representation of this value.
- Throws:
RepositoryException
-
getBinary
Returns aBinaryrepresentation of thisQValueobject.- Returns:
- A
Binaryrepresentation of this value. - Throws:
RepositoryException
-
getCalendar
Returns aCalendarrepresentation of this value.- Returns:
- A
Calendarrepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getDecimal
Returns aBigDecimalrepresentation of this value.- Returns:
- A
BigDecimalrepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getDouble
Returns adoublerepresentation of this value.- Returns:
- A
doublerepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getLong
Returns alongrepresentation of this value.- Returns:
- A
longrepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getBoolean
Returns abooleanrepresentation of this value.- Returns:
- A
booleanrepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getName
Returns aNamerepresentation of this value.- Returns:
- A
Namerepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getPath
Returns aPathrepresentation of this value.- Returns:
- A
Pathrepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
getURI
Returns anURIrepresentation of this value.- Returns:
- A
URIrepresentation of this value. - Throws:
RepositoryException- if an error occurs.
-
discard
void discard()Frees temporarily allocated resources such as temporary file, buffer, etc.
-