org.apache.jackrabbit.spi
Interface NodeInfo

All Superinterfaces:
ItemInfo
All Known Implementing Classes:
NodeInfoImpl

public interface NodeInfo
extends ItemInfo

The NodeInfo 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 calling RepositoryService.getChildInfos(SessionInfo, NodeId). In case of batch read the child nodes might be part of the returned Iterator.


Method Summary
 NodeId getId()
          Returns the NodeId for the node that is based on this info object.
 int getIndex()
          Index of the node.
 Name[] getMixins()
           
 Name getNodetype()
           
 Iterator getPropertyIds()
           
 PropertyId[] getReferences()
           
 
Methods inherited from interface org.apache.jackrabbit.spi.ItemInfo
denotesNode, getName, getParentId, getPath
 

Method Detail

getId

NodeId getId()
Returns the NodeId for the node that is based on this info object.

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 Names representing the names of mixin nodetypes. This includes only explicitly assigned mixin nodetypes. It does not include mixin types inherited through the additon of supertypes to the primary type hierarchy.

getReferences

PropertyId[] getReferences()
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

Iterator getPropertyIds()
Returns:
Ids of children properties
See Also:
PropertyInfo.getId()


Copyright © 2004-2008 The Apache Software Foundation. All Rights Reserved.