public interface JCRValueWrapper
extends javax.jcr.Value
Value to allow more types of properties.| Modifier and Type | Method and Description |
|---|---|
CategoryBean |
getCategory()
Returns a
CategoryBean instance referred by this value. |
javax.jcr.nodetype.PropertyDefinition |
getDefinition()
Returns the property definition for this value.
|
JCRNodeWrapper |
getNode()
Returns a
JCRNodeWrapper instance referred by this value. |
Date |
getTime()
Returns a
Date representation of the Calendar's time of this value. |
CategoryBean getCategory() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
CategoryBean instance referred by this value.
If the value does not match a valid category either ValueFormatException or ItemNotFoundException is thrown.CategoryBean 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.javax.jcr.nodetype.PropertyDefinition getDefinition()
throws javax.jcr.RepositoryException
PropertyDefinition for the current value.javax.jcr.RepositoryException - if another error occurs.Date getTime() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
Date 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.
Date representation of this value.javax.jcr.ValueFormatException - if conversion to a Date is
not possible.javax.jcr.RepositoryException - if another error occurs.JCRNodeWrapper getNode() throws javax.jcr.ValueFormatException, IllegalStateException, javax.jcr.RepositoryException
JCRNodeWrapper instance referred by this value. The property has to be one of the following
types PropertyType.STRINGPropertyType.REFERENCEPropertyType.WEAKREFERENCEJCRNodeWrapper 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.Copyright © 2004–2020 Jahia Solutions Group SA. All rights reserved.