Package org.apache.jackrabbit.spi
Interface NodeInfo
-
- All Superinterfaces:
ItemInfo
- All Known Implementing Classes:
NodeInfoImpl
public interface NodeInfo extends ItemInfo
TheNodeInfo
provides the basic information required to build nodes making up the repository hierarchy.Note however, that the list of child nodes does not form part of a
NodeInfo
. It is retrieved by callingRepositoryService.getChildInfos(SessionInfo, NodeId)
. In case ofbatch read
the child nodes might be part of the returnedIterator
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.Iterator<ChildInfo>
getChildInfos()
Return allChildInfo
s of the node represent by this info, an empty iterator if that node doesn't have any child nodes ornull
if the implementation is not able or for some internal reasons not willing to compute theChildInfo
iterator.NodeId
getId()
Returns theNodeId
for the node that is based on this info object.int
getIndex()
Index of the node.Name[]
getMixins()
Name
getNodetype()
java.util.Iterator<PropertyId>
getPropertyIds()
PropertyId[]
getReferences()
Deprecated.-
Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getPath
-
-
-
-
Method Detail
-
getId
NodeId getId()
Returns theNodeId
for the node that is based on this info object.- Specified by:
getId
in interfaceItemInfo
- 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
int getIndex()
Index of the node.- Returns:
- the index.
-
getNodetype
Name getNodetype()
- Returns:
Name
representing the name of the primary nodetype.
-
getMixins
Name[] getMixins()
- Returns:
- Array of
Name
s 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
PropertyId[] getReferences()
Deprecated.Return theId
s of the properties that are referencing the node based on this info object.- Returns:
Id
s 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
java.util.Iterator<PropertyId> getPropertyIds()
- Returns:
Id
s of children properties- See Also:
PropertyInfo.getId()
-
getChildInfos
java.util.Iterator<ChildInfo> getChildInfos()
Return allChildInfo
s of the node represent by this info, an empty iterator if that node doesn't have any child nodes ornull
if the implementation is not able or for some internal reasons not willing to compute theChildInfo
iterator. 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.- Returns:
- An iterator of
ChildInfo
s ornull
if the implementation is not able or willing to compute the set ofChildInfo
s (e.g. an implementation may choose to returnnull
if there is a huge amount of child nodes). In this caseRepositoryService.getChildInfos(SessionInfo, NodeId)
will be used to load theChildInfo
s.
-
-