Package org.apache.jackrabbit.spi2dav
Class PropertyInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2dav.PropertyInfoImpl
-
- All Implemented Interfaces:
ItemInfo
,PropertyInfo
public class PropertyInfoImpl extends Object implements PropertyInfo
PropertyInfoImpl
...
-
-
Constructor Summary
Constructors Constructor Description PropertyInfoImpl(PropertyId id, Path path, int type, boolean isMultiValued, QValue[] values)
PropertyInfoImpl(PropertyId id, DavPropertySet propSet, NamePathResolver resolver, ValueFactory valueFactory, QValueFactory qValueFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
denotesNode()
Returns true if thisItemInfo
denotes a node, false otherwise.PropertyId
getId()
Path
getPath()
Returns thePath
of the item represented by thisItemInfo
.int
getType()
QValue[]
getValues()
boolean
isMultiValued()
-
-
-
Constructor Detail
-
PropertyInfoImpl
public PropertyInfoImpl(PropertyId id, Path path, int type, boolean isMultiValued, QValue[] values)
-
PropertyInfoImpl
public PropertyInfoImpl(PropertyId id, DavPropertySet propSet, NamePathResolver resolver, ValueFactory valueFactory, QValueFactory qValueFactory) throws RepositoryException, IOException, NameException
-
-
Method Detail
-
denotesNode
public boolean denotesNode()
Description copied from interface:ItemInfo
Returns true if thisItemInfo
denotes a node, false otherwise.- Specified by:
denotesNode
in interfaceItemInfo
- Returns:
- true if this
ItemInfo
denotes a node, false otherwise.
-
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
.
-
getPath
public Path getPath()
Description copied from interface:ItemInfo
Returns thePath
of the item represented by thisItemInfo
.- Specified by:
getPath
in interfaceItemInfo
- Returns:
- the
Path
of the item represented by this item info. - See Also:
ItemInfo.getPath()
-
-