public class JCRValueWrapperImpl extends Object implements JCRValueWrapper
| Constructor and Description |
|---|
JCRValueWrapperImpl(javax.jcr.Value value,
ExtendedPropertyDefinition definition,
JCRSessionWrapper session) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
javax.jcr.Binary |
getBinary() |
boolean |
getBoolean() |
CategoryBean |
getCategory()
Returns a
CategoryBean instance referred by this value. |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
javax.jcr.nodetype.PropertyDefinition |
getDefinition()
Returns the property definition for this value.
|
double |
getDouble() |
long |
getLong() |
JCRNodeWrapper |
getNode()
Returns a
JCRNodeWrapper instance referred by this value. |
InputStream |
getStream() |
String |
getString() |
Date |
getTime()
Returns a
Date representation of the Calendar's time of this value. |
int |
getType() |
int |
hashCode() |
String |
toString() |
public JCRValueWrapperImpl(javax.jcr.Value value,
ExtendedPropertyDefinition definition,
JCRSessionWrapper session)
public CategoryBean getCategory() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
JCRValueWrapperCategoryBean instance referred by this value.
If the value does not match a valid category either ValueFormatException or ItemNotFoundException is thrown.getCategory in interface JCRValueWrapperCategoryBean referred by the value of this
property.javax.jcr.ValueFormatException - if conversion to a CategoryBean is
not possible.javax.jcr.RepositoryException - if another error occurs.public javax.jcr.nodetype.PropertyDefinition getDefinition()
throws javax.jcr.RepositoryException
JCRValueWrappergetDefinition in interface JCRValueWrapperPropertyDefinition for the current value.javax.jcr.RepositoryException - if another error occurs.public Date getTime() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
JCRValueWrapperDate representation of the Calendar's time of this value.
The object returned is a copy of the stored value, so changes to it are not reflected in internal storage.
getTime in interface JCRValueWrapperDate representation of this value.javax.jcr.ValueFormatException - if conversion to a Date is
not possible.javax.jcr.RepositoryException - if another error occurs.public String getString() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getString in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic InputStream getStream() throws IllegalStateException, javax.jcr.RepositoryException
getStream in interface javax.jcr.ValueIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic long getLong()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getLong in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic double getDouble()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getDouble in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic Calendar getDate() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
getDate in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic boolean getBoolean()
throws javax.jcr.ValueFormatException,
IllegalStateException,
javax.jcr.RepositoryException
getBoolean in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionIllegalStateExceptionjavax.jcr.RepositoryExceptionpublic javax.jcr.Binary getBinary()
throws javax.jcr.RepositoryException
getBinary in interface javax.jcr.Valuejavax.jcr.RepositoryExceptionpublic BigDecimal getDecimal() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getDecimal in interface javax.jcr.Valuejavax.jcr.ValueFormatExceptionjavax.jcr.RepositoryExceptionpublic JCRNodeWrapper getNode() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
JCRValueWrapperJCRNodeWrapper instance referred by this value. The property has to be one of the following
types PropertyType.STRINGPropertyType.REFERENCEPropertyType.WEAKREFERENCEgetNode in interface JCRValueWrapperJCRNodeWrapper referred by the value of this
property.javax.jcr.ValueFormatException - if conversion to a JCRNodeWrapper is
not possible.IllegalStateException - if getStream has previously
been called on this Value instance. In this case a new
Value instance must be acquired in order to successfully
call this method.javax.jcr.RepositoryException - if another error occurs.public int getType()
getType in interface javax.jcr.ValueCopyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.