Package org.apache.jackrabbit.spi2davex
Class PropertyInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2davex.ItemInfoImpl
-
- org.apache.jackrabbit.spi2davex.PropertyInfoImpl
-
- All Implemented Interfaces:
Serializable
,ItemInfo
,PropertyInfo
public class PropertyInfoImpl extends ItemInfoImpl implements PropertyInfo
PropertyInfoImpl
...- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyInfoImpl(PropertyId id, Path path, int propertyType, QValue value)
PropertyInfoImpl(PropertyId id, Path path, int propertyType, QValue[] values)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PropertyId
getId()
int
getType()
QValue[]
getValues()
boolean
isMultiValued()
-
Methods inherited from class org.apache.jackrabbit.spi2davex.ItemInfoImpl
denotesNode, getName, getPath
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
-
-
-
-
Constructor Detail
-
PropertyInfoImpl
public PropertyInfoImpl(PropertyId id, Path path, int propertyType, QValue value) throws RepositoryException
- Throws:
RepositoryException
-
PropertyInfoImpl
public PropertyInfoImpl(PropertyId id, Path path, int propertyType, QValue[] values) throws RepositoryException
- Throws:
RepositoryException
-
-
Method Detail
-
getId
public PropertyId getId()
- Specified by:
getId
in interfaceItemInfo
- Specified by:
getId
in interfacePropertyInfo
- Returns:
- identifier for the item that is based on this info object. the id can either be an absolute path or a uniqueID (+ relative path).
- See Also:
RepositoryService.getNodeInfo(SessionInfo, NodeId)
-
getType
public int getType()
- Specified by:
getType
in interfacePropertyInfo
- Returns:
- The
type
of theProperty
base on thisPropertyInfo
. Note, thatPropertyType.UNDEFINED
will never be returned as the value of aProperty
always has a defined type. - See Also:
PropertyType
-
isMultiValued
public boolean isMultiValued()
- Specified by:
isMultiValued
in interfacePropertyInfo
- Returns:
- true if the
Property
based on this info object is multivalue. - See Also:
PropertyDefinition.isMultiple()
-
getValues
public QValue[] getValues()
- Specified by:
getValues
in interfacePropertyInfo
- Returns:
- The values present on this
PropertyInfo
.
-
-