Package org.apache.jackrabbit.spi2davex
Class NodeInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi2davex.ItemInfoImpl
-
- org.apache.jackrabbit.spi2davex.NodeInfoImpl
-
- All Implemented Interfaces:
Serializable,ItemInfo,NodeInfo
public class NodeInfoImpl extends ItemInfoImpl implements NodeInfo
NodeInfoImpl...- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NodeInfoImpl(NodeId id, Path path)Creates a newNodeInfo.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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()Iterator<PropertyId>getPropertyIds()PropertyId[]getReferences()Return theIds of the properties that are referencing the node based on this info object.-
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
-
NodeInfoImpl
public NodeInfoImpl(NodeId id, Path path) throws RepositoryException
Creates a newNodeInfo.- Parameters:
id- The node id.path- the path to this item.- Throws:
RepositoryException- If an error occurs.
-
-
Method Detail
-
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.
-
-