Class PropertyInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.ItemInfoImpl
-
- org.apache.jackrabbit.spi.commons.PropertyInfoImpl
-
- All Implemented Interfaces:
java.io.Serializable
,ItemInfo
,PropertyInfo
public class PropertyInfoImpl extends ItemInfoImpl implements PropertyInfo
PropertyInfoImpl
implements a serializablePropertyInfo
based on another property info.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PropertyInfoImpl(NodeId parentId, Name name, Path path, PropertyId id, int type, boolean isMultiValued, QValue[] values)
Deprecated.PropertyInfoImpl(Path path, PropertyId id, int type, boolean isMultiValued, QValue[] values)
Creates a new property info for the given parameters.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PropertyInfo
createSerializablePropertyInfo(PropertyInfo propertyInfo, IdFactory idFactory)
Creates a new serializable property info for the givenPropertyInfo
.PropertyId
getId()
int
getType()
QValue[]
getValues()
boolean
isMultiValued()
-
Methods inherited from class org.apache.jackrabbit.spi.commons.ItemInfoImpl
denotesNode, getPath
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
-
-
-
-
Constructor Detail
-
PropertyInfoImpl
public PropertyInfoImpl(NodeId parentId, Name name, Path path, PropertyId id, int type, boolean isMultiValued, QValue[] values)
Deprecated.UsePropertyInfoImpl(Path, PropertyId, int, boolean, QValue[])
instead. The parentId is not used any more.Creates a new property info for the given parameters.- Parameters:
parentId
- the parent id.name
- the name of this property.path
- the path to this property.id
- the id of this property.type
- the type of this property.isMultiValued
- whether this property is multi-valued.values
- the values.
-
PropertyInfoImpl
public PropertyInfoImpl(Path path, PropertyId id, int type, boolean isMultiValued, QValue[] values)
Creates a new property info for the given parameters.- Parameters:
path
- the path to this property.id
- the id of this property.type
- the type of this property.isMultiValued
- whether this property is multi-valued.values
- the values.
-
-
Method Detail
-
createSerializablePropertyInfo
public static PropertyInfo createSerializablePropertyInfo(PropertyInfo propertyInfo, IdFactory idFactory)
Creates a new serializable property info for the givenPropertyInfo
.- Parameters:
propertyInfo
-
-
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
.
-
-