Class PropertyInfoImpl
java.lang.Object
org.apache.jackrabbit.spi.commons.ItemInfoImpl
org.apache.jackrabbit.spi.commons.PropertyInfoImpl
- All Implemented Interfaces:
Serializable,ItemInfo,PropertyInfo
PropertyInfoImpl implements a serializable
PropertyInfo based on another property info.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionPropertyInfoImpl(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
Modifier and TypeMethodDescriptionstatic PropertyInfocreateSerializablePropertyInfo(PropertyInfo propertyInfo, IdFactory idFactory) Creates a new serializable property info for the givenPropertyInfo.getId()intgetType()QValue[]booleanMethods inherited from class org.apache.jackrabbit.spi.commons.ItemInfoImpl
denotesNode, getPathMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
-
Constructor Details
-
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
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 Details
-
createSerializablePropertyInfo
public static PropertyInfo createSerializablePropertyInfo(PropertyInfo propertyInfo, IdFactory idFactory) Creates a new serializable property info for the givenPropertyInfo.- Parameters:
propertyInfo-
-
getId
- Specified by:
getIdin interfaceItemInfo- Specified by:
getIdin 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:
-
getType
public int getType()- Specified by:
getTypein interfacePropertyInfo- Returns:
- The
typeof thePropertybase on thisPropertyInfo. Note, thatPropertyType.UNDEFINEDwill never be returned as the value of aPropertyalways has a defined type. - See Also:
-
isMultiValued
public boolean isMultiValued()- Specified by:
isMultiValuedin interfacePropertyInfo- Returns:
- true if the
Propertybased on this info object is multivalue. - See Also:
-
getValues
- Specified by:
getValuesin interfacePropertyInfo- Returns:
- The values present on this
PropertyInfo.
-
PropertyInfoImpl(Path, PropertyId, int, boolean, QValue[])instead.