public class PropertyImpl extends ItemImpl implements javax.jcr.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(javax.jcr.ItemVisitor visitor)
Implementation of
Item.accept(javax.jcr.ItemVisitor) for property. |
javax.jcr.Binary |
getBinary() |
boolean |
getBoolean() |
Calendar |
getDate() |
BigDecimal |
getDecimal() |
javax.jcr.nodetype.PropertyDefinition |
getDefinition() |
double |
getDouble() |
long |
getLength() |
long[] |
getLengths() |
long |
getLong() |
String |
getName() |
javax.jcr.Node |
getNode() |
javax.jcr.Property |
getProperty() |
InputStream |
getStream() |
String |
getString() |
int |
getType() |
javax.jcr.Value |
getValue() |
javax.jcr.Value[] |
getValues() |
boolean |
isMultiple() |
boolean |
isNode()
Returns false
|
void |
setValue(BigDecimal value) |
void |
setValue(javax.jcr.Binary value) |
void |
setValue(boolean value) |
void |
setValue(Calendar value) |
void |
setValue(double value) |
void |
setValue(InputStream value) |
void |
setValue(long value) |
void |
setValue(javax.jcr.Node value) |
void |
setValue(String value) |
void |
setValue(String[] values) |
void |
setValue(javax.jcr.Value value) |
void |
setValue(javax.jcr.Value[] values) |
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChanged
public static final int UNDEFINED_PROPERTY_LENGTH
public PropertyImpl(SessionImpl session, PropertyState state, ItemLifeCycleListener[] listeners)
public String getName() throws javax.jcr.RepositoryException
public void accept(javax.jcr.ItemVisitor visitor) throws javax.jcr.RepositoryException
Item.accept(javax.jcr.ItemVisitor)
for property.public boolean isNode()
public void setValue(javax.jcr.Value value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(javax.jcr.Value)
public void setValue(javax.jcr.Value[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(javax.jcr.Value[])
public void setValue(String value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
Property.setValue(String)
public void setValue(String[] values) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(String[])
public void setValue(InputStream value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(InputStream)
public void setValue(javax.jcr.Binary value) throws javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.setValue(Binary)
public void setValue(long value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(long)
public void setValue(double value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(double)
public void setValue(BigDecimal value) throws javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.setValue(BigDecimal)
public void setValue(Calendar value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(Calendar)
public void setValue(boolean value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.nodetype.ConstraintViolationException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.nodetype.ConstraintViolationException
javax.jcr.RepositoryException
Property.setValue(boolean)
public void setValue(javax.jcr.Node value) throws javax.jcr.ValueFormatException, javax.jcr.version.VersionException, javax.jcr.lock.LockException, javax.jcr.RepositoryException
setValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.version.VersionException
javax.jcr.lock.LockException
javax.jcr.RepositoryException
Property.setValue(Node)
public javax.jcr.Value getValue() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getValue
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getValue()
public javax.jcr.Value[] getValues() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getValues
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getValues()
public String getString() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getString
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getString()
public InputStream getStream() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getStream
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getStream()
public javax.jcr.Binary getBinary() throws javax.jcr.RepositoryException
getBinary
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.getBinary()
public long getLong() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getLong
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getLong()
public double getDouble() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getDouble
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getDouble()
public BigDecimal getDecimal() throws javax.jcr.RepositoryException
getDecimal
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.getDecimal()
public Calendar getDate() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getDate
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getDate()
public boolean getBoolean() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getBoolean
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getBoolean()
public javax.jcr.Node getNode() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getNode
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getNode()
public javax.jcr.Property getProperty() throws javax.jcr.RepositoryException
getProperty
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.getProperty()
public long getLength() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getLength
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getLength()
public long[] getLengths() throws javax.jcr.ValueFormatException, javax.jcr.RepositoryException
getLengths
in interface javax.jcr.Property
javax.jcr.ValueFormatException
javax.jcr.RepositoryException
Property.getLengths()
public javax.jcr.nodetype.PropertyDefinition getDefinition() throws javax.jcr.RepositoryException
getDefinition
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.getDefinition()
public int getType() throws javax.jcr.RepositoryException
getType
in interface javax.jcr.Property
javax.jcr.RepositoryException
Property.getType()
public boolean isMultiple()
isMultiple
in interface javax.jcr.Property
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.