Package org.apache.jackrabbit.jcr2spi
Class PropertyImpl
- java.lang.Object
-
- org.apache.jackrabbit.jcr2spi.ItemImpl
-
- org.apache.jackrabbit.jcr2spi.PropertyImpl
-
- All Implemented Interfaces:
Item
,Property
,ItemStateLifeCycleListener
public class PropertyImpl extends ItemImpl implements Property
PropertyImpl
...
-
-
Field Summary
Fields Modifier and Type Field Description static int
UNDEFINED_PROPERTY_LENGTH
-
Fields inherited from interface javax.jcr.Property
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 Summary
Constructors Constructor Description PropertyImpl(SessionImpl session, PropertyState state, ItemLifeCycleListener[] listeners)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(ItemVisitor visitor)
Implementation ofItem.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 falsevoid
setValue(boolean value)
void
setValue(double value)
void
setValue(long value)
void
setValue(InputStream value)
void
setValue(String value)
void
setValue(String[] values)
void
setValue(BigDecimal value)
void
setValue(Calendar value)
void
setValue(Binary value)
void
setValue(Node value)
void
setValue(Value value)
void
setValue(Value[] values)
-
Methods inherited from class org.apache.jackrabbit.jcr2spi.ItemImpl
checkIsWritable, checkStatus, getAncestor, getDepth, getItemManager, getItemState, getParent, getPath, getSession, isModified, isNew, isSame, isWritable, refresh, remove, save, statusChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.jcr.Item
getAncestor, getDepth, getParent, getPath, getSession, isModified, isNew, isSame, refresh, remove, save
-
-
-
-
Field Detail
-
UNDEFINED_PROPERTY_LENGTH
public static final int UNDEFINED_PROPERTY_LENGTH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
PropertyImpl
public PropertyImpl(SessionImpl session, PropertyState state, ItemLifeCycleListener[] listeners)
-
-
Method Detail
-
getName
public String getName() throws RepositoryException
- Specified by:
getName
in interfaceItem
- Specified by:
getName
in classItemImpl
- Throws:
RepositoryException
- See Also:
Item.getName()
-
accept
public void accept(ItemVisitor visitor) throws RepositoryException
Implementation ofItem.accept(javax.jcr.ItemVisitor)
for property.- Specified by:
accept
in interfaceItem
- Specified by:
accept
in classItemImpl
- Parameters:
visitor
-- Throws:
RepositoryException
- See Also:
Item.accept(javax.jcr.ItemVisitor)
-
isNode
public boolean isNode()
Returns false- Specified by:
isNode
in interfaceItem
- Specified by:
isNode
in classItemImpl
- Returns:
- false
- See Also:
Item.isNode()
-
setValue
public void setValue(Value value) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(javax.jcr.Value)
-
setValue
public void setValue(Value[] values) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(javax.jcr.Value[])
-
setValue
public void setValue(String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
- See Also:
Property.setValue(String)
-
setValue
public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(String[])
-
setValue
public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(InputStream)
-
setValue
public void setValue(Binary value) throws RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.setValue(Binary)
-
setValue
public void setValue(long value) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(long)
-
setValue
public void setValue(double value) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(double)
-
setValue
public void setValue(BigDecimal value) throws RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.setValue(BigDecimal)
-
setValue
public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(Calendar)
-
setValue
public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
ConstraintViolationException
RepositoryException
- See Also:
Property.setValue(boolean)
-
setValue
public void setValue(Node value) throws ValueFormatException, VersionException, LockException, RepositoryException
- Specified by:
setValue
in interfaceProperty
- Throws:
ValueFormatException
VersionException
LockException
RepositoryException
- See Also:
Property.setValue(Node)
-
getValue
public Value getValue() throws ValueFormatException, RepositoryException
- Specified by:
getValue
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getValue()
-
getValues
public Value[] getValues() throws ValueFormatException, RepositoryException
- Specified by:
getValues
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getValues()
-
getString
public String getString() throws ValueFormatException, RepositoryException
- Specified by:
getString
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getString()
-
getStream
public InputStream getStream() throws ValueFormatException, RepositoryException
- Specified by:
getStream
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getStream()
-
getBinary
public Binary getBinary() throws RepositoryException
- Specified by:
getBinary
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.getBinary()
-
getLong
public long getLong() throws ValueFormatException, RepositoryException
- Specified by:
getLong
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getLong()
-
getDouble
public double getDouble() throws ValueFormatException, RepositoryException
- Specified by:
getDouble
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getDouble()
-
getDecimal
public BigDecimal getDecimal() throws RepositoryException
- Specified by:
getDecimal
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.getDecimal()
-
getDate
public Calendar getDate() throws ValueFormatException, RepositoryException
- Specified by:
getDate
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getDate()
-
getBoolean
public boolean getBoolean() throws ValueFormatException, RepositoryException
- Specified by:
getBoolean
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getBoolean()
-
getNode
public Node getNode() throws ValueFormatException, RepositoryException
- Specified by:
getNode
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getNode()
-
getProperty
public Property getProperty() throws RepositoryException
- Specified by:
getProperty
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.getProperty()
-
getLength
public long getLength() throws ValueFormatException, RepositoryException
- Specified by:
getLength
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getLength()
-
getLengths
public long[] getLengths() throws ValueFormatException, RepositoryException
- Specified by:
getLengths
in interfaceProperty
- Throws:
ValueFormatException
RepositoryException
- See Also:
Property.getLengths()
-
getDefinition
public PropertyDefinition getDefinition() throws RepositoryException
- Specified by:
getDefinition
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.getDefinition()
-
getType
public int getType() throws RepositoryException
- Specified by:
getType
in interfaceProperty
- Throws:
RepositoryException
- See Also:
Property.getType()
-
isMultiple
public boolean isMultiple()
- Specified by:
isMultiple
in interfaceProperty
- Returns:
- true if the definition indicates that this Property is multivalued.
-
-