public class PropertyImpl extends ItemImpl implements Property
PropertyImpl...| Modifier and Type | Field and Description |
|---|---|
static int |
UNDEFINED_PROPERTY_LENGTH |
JCR_ACTIVITY, JCR_AUTOCREATED, JCR_BASE_VERSION, JCR_CHILD_VERSION_HISTORY, JCR_CONFIGURATION, JCR_CONTENT, JCR_COPIED_FROM, JCR_CREATED, JCR_CREATED_BY, JCR_CURRENT_LIFECYCLE_STATE, JCR_DATA, JCR_DEFAULT_PRIMARY_TYPE, JCR_DEFAULT_VALUES, JCR_DESCRIPTION, JCR_ENCODING, JCR_FROZEN_MIXIN_TYPES, JCR_FROZEN_PRIMARY_TYPE, JCR_FROZEN_UUID, JCR_HAS_ORDERABLE_CHILD_NODES, JCR_HOST, JCR_ID, JCR_IS_ABSTRACT, JCR_IS_CHECKED_OUT, JCR_IS_MIXIN, JCR_LANGUAGE, JCR_LAST_MODIFIED, JCR_LAST_MODIFIED_BY, JCR_LIFECYCLE_POLICY, JCR_LOCK_IS_DEEP, JCR_LOCK_OWNER, JCR_MANDATORY, JCR_MERGE_FAILED, JCR_MIMETYPE, JCR_MIXIN_TYPES, JCR_MULTIPLE, JCR_NAME, JCR_NODE_TYPE_NAME, JCR_ON_PARENT_VERSION, JCR_PATH, JCR_PORT, JCR_PREDECESSORS, JCR_PRIMARY_ITEM_NAME, JCR_PRIMARY_TYPE, JCR_PROTECTED, JCR_PROTOCOL, JCR_REPOSITORY, JCR_REQUIRED_PRIMARY_TYPES, JCR_REQUIRED_TYPE, JCR_ROOT, JCR_SAME_NAME_SIBLINGS, JCR_STATEMENT, JCR_SUCCESSORS, JCR_SUPERTYPES, JCR_TITLE, JCR_UUID, JCR_VALUE_CONSTRAINTS, JCR_VERSION_HISTORY, JCR_VERSIONABLE_UUID, JCR_WORKSPACE| Constructor and Description |
|---|
PropertyImpl(SessionImpl session,
PropertyState state,
ItemLifeCycleListener[] listeners) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(ItemVisitor visitor)
Implementation of
Item.accept(javax.jcr.ItemVisitor) for property. |
Binary |
getBinary() |
boolean |
getBoolean() |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
PropertyDefinition |
getDefinition() |
double |
getDouble() |
long |
getLength() |
long[] |
getLengths() |
long |
getLong() |
String |
getName() |
Node |
getNode() |
Property |
getProperty() |
InputStream |
getStream() |
String |
getString() |
int |
getType() |
Value |
getValue() |
Value[] |
getValues() |
boolean |
isMultiple() |
boolean |
isNode()
Returns false
|
void |
setValue(BigDecimal value) |
void |
setValue(Binary value) |
void |
setValue(boolean value) |
void |
setValue(Calendar value) |
void |
setValue(double value) |
void |
setValue(InputStream value) |
void |
setValue(long value) |
void |
setValue(Node value) |
void |
setValue(String value) |
void |
setValue(String[] values) |
void |
setValue(Value value) |
void |
setValue(Value[] values) |
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChangedclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAncestor, getDepth, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, savepublic static final int UNDEFINED_PROPERTY_LENGTH
public PropertyImpl(SessionImpl session, PropertyState state, ItemLifeCycleListener[] listeners)
public String getName() throws RepositoryException
getName in interface ItemgetName in class ItemImplRepositoryExceptionItem.getName()public void accept(ItemVisitor visitor) throws RepositoryException
Item.accept(javax.jcr.ItemVisitor) for property.accept in interface Itemaccept in class ItemImplvisitor - RepositoryExceptionItem.accept(javax.jcr.ItemVisitor)public boolean isNode()
isNode in interface ItemisNode in class ItemImplItem.isNode()public void setValue(Value value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(javax.jcr.Value)public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(javax.jcr.Value[])public void setValue(String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionProperty.setValue(String)public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(String[])public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(InputStream)public void setValue(Binary value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionProperty.setValue(Binary)public void setValue(long value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(long)public void setValue(double value)
throws ValueFormatException,
VersionException,
LockException,
RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(double)public void setValue(BigDecimal value) throws RepositoryException
setValue in interface PropertyRepositoryExceptionProperty.setValue(BigDecimal)public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(Calendar)public void setValue(boolean value)
throws ValueFormatException,
VersionException,
LockException,
ConstraintViolationException,
RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionConstraintViolationExceptionRepositoryExceptionProperty.setValue(boolean)public void setValue(Node value) throws ValueFormatException, VersionException, LockException, RepositoryException
setValue in interface PropertyValueFormatExceptionVersionExceptionLockExceptionRepositoryExceptionProperty.setValue(Node)public Value getValue() throws ValueFormatException, RepositoryException
getValue in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getValue()public Value[] getValues() throws ValueFormatException, RepositoryException
getValues in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getValues()public String getString() throws ValueFormatException, RepositoryException
getString in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getString()public InputStream getStream() throws ValueFormatException, RepositoryException
getStream in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getStream()public Binary getBinary() throws RepositoryException
getBinary in interface PropertyRepositoryExceptionProperty.getBinary()public long getLong()
throws ValueFormatException,
RepositoryException
getLong in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getLong()public double getDouble()
throws ValueFormatException,
RepositoryException
getDouble in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getDouble()public BigDecimal getDecimal() throws RepositoryException
getDecimal in interface PropertyRepositoryExceptionProperty.getDecimal()public Calendar getDate() throws ValueFormatException, RepositoryException
getDate in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getDate()public boolean getBoolean()
throws ValueFormatException,
RepositoryException
getBoolean in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getBoolean()public Node getNode() throws ValueFormatException, RepositoryException
getNode in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getNode()public Property getProperty() throws RepositoryException
getProperty in interface PropertyRepositoryExceptionProperty.getProperty()public long getLength()
throws ValueFormatException,
RepositoryException
getLength in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getLength()public long[] getLengths()
throws ValueFormatException,
RepositoryException
getLengths in interface PropertyValueFormatExceptionRepositoryExceptionProperty.getLengths()public PropertyDefinition getDefinition() throws RepositoryException
getDefinition in interface PropertyRepositoryExceptionProperty.getDefinition()public int getType()
throws RepositoryException
getType in interface PropertyRepositoryExceptionProperty.getType()public boolean isMultiple()
isMultiple in interface PropertyCopyright © 2004–2024 The Apache Software Foundation. All rights reserved.