Package org.apache.jackrabbit.spi2dav
Class NodeInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2dav.NodeInfoImpl
-
-
Constructor Summary
Constructors Constructor Description NodeInfoImpl(NodeId id, DavPropertySet propSet, NamePathResolver resolver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandenotesNode()Returns true if thisItemInfodenotes a node, false otherwise.Iterator<ChildInfo>getChildInfos()Return allChildInfos of the node represent by this info, an empty iterator if that node doesn't have any child nodes ornullif the implementation is not able or for some internal reasons not willing to compute theChildInfoiterator.NodeIdgetId()Returns theNodeIdfor the node that is based on this info object.intgetIndex()Index of the node.Name[]getMixins()NamegetNodetype()PathgetPath()Returns thePathof the item represented by thisItemInfo.Iterator<PropertyId>getPropertyIds()PropertyId[]getReferences()Return theIds of the properties that are referencing the node based on this info object.
-
-
-
Constructor Detail
-
NodeInfoImpl
public NodeInfoImpl(NodeId id, DavPropertySet propSet, NamePathResolver resolver) throws RepositoryException, NameException
- Throws:
RepositoryExceptionNameException
-
-
Method Detail
-
denotesNode
public boolean denotesNode()
Description copied from interface:ItemInfoReturns true if thisItemInfodenotes a node, false otherwise.- Specified by:
denotesNodein interfaceItemInfo- Returns:
- true if this
ItemInfodenotes a node, false otherwise.
-
getId
public NodeId getId()
Description copied from interface:NodeInfoReturns theNodeIdfor the node that is based on this info object.- Specified by:
getIdin interfaceItemInfo- Specified by:
getIdin interfaceNodeInfo- 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)
-
getIndex
public int getIndex()
Description copied from interface:NodeInfoIndex of the node.
-
getNodetype
public Name getNodetype()
- Specified by:
getNodetypein interfaceNodeInfo- Returns:
Namerepresenting the name of the primary nodetype.
-
getMixins
public Name[] getMixins()
- Specified by:
getMixinsin interfaceNodeInfo- Returns:
- Array of
Names representing the names of mixin nodetypes. This includes only explicitly assigned mixin nodetypes. It does not include mixin types inherited through the addition of supertypes to the primary type hierarchy. If there are no mixin node types assigned an empty array will be returned.
-
getReferences
public PropertyId[] getReferences()
Description copied from interface:NodeInfoReturn theIds of the properties that are referencing the node based on this info object.- Specified by:
getReferencesin interfaceNodeInfo- Returns:
Ids of the properties that are referencing the node based on this info object or an empty array if the node is not referenceable or no references exist.- See Also:
PropertyInfo.getId()
-
getPropertyIds
public Iterator<PropertyId> getPropertyIds()
- Specified by:
getPropertyIdsin interfaceNodeInfo- Returns:
Ids of children properties- See Also:
PropertyInfo.getId()
-
getChildInfos
public Iterator<ChildInfo> getChildInfos()
Description copied from interface:NodeInfoReturn allChildInfos of the node represent by this info, an empty iterator if that node doesn't have any child nodes ornullif the implementation is not able or for some internal reasons not willing to compute theChildInfoiterator. In the latter case the user of this API must callRepositoryService.getChildInfos(SessionInfo, NodeId)in order to determine the existence and identity of the child nodes.- Specified by:
getChildInfosin interfaceNodeInfo- Returns:
- An iterator of
ChildInfos ornullif the implementation is not able or willing to compute the set ofChildInfos (e.g. an implementation may choose to returnnullif there is a huge amount of child nodes). In this caseRepositoryService.getChildInfos(SessionInfo, NodeId)will be used to load theChildInfos.
-
getPath
public Path getPath()
Description copied from interface:ItemInfoReturns thePathof the item represented by thisItemInfo.- Specified by:
getPathin interfaceItemInfo- Returns:
- the
Pathof the item represented by this item info. - See Also:
ItemInfo.getPath()
-
-