org.apache.jackrabbit.spi2dav
Class NodeInfoImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi2dav.NodeInfoImpl
All Implemented Interfaces:
ItemInfo, NodeInfo

public class NodeInfoImpl
extends Object
implements NodeInfo

NodeInfoImpl...


Constructor Summary
NodeInfoImpl(NodeId id, DavPropertySet propSet, NamePathResolver resolver)
           
 
Method Summary
 boolean denotesNode()
          Returns true if this ItemInfo denotes a node, false otherwise.
 Iterator<ChildInfo> getChildInfos()
          Return the all ChildInfos of the node represent by this info, an empty iterator if that node doesn't have any child nodes or null if the implementation is not able or for some internal reasons not willing to compute the ChildInfo iterator.
 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()
           
 Path getPath()
          Returns the Path of the item represented by this ItemInfo.
 Iterator<PropertyId> getPropertyIds()
           
 PropertyId[] getReferences()
          Return the Ids of the properties that are referencing the node based on this info object.
 
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
getPath
 

Constructor Detail

NodeInfoImpl

public NodeInfoImpl(NodeId id,
                    DavPropertySet propSet,
                    NamePathResolver resolver)
             throws RepositoryException,
                    NameException
Throws:
RepositoryException
NameException
Method Detail

denotesNode

public boolean denotesNode()
Description copied from interface: ItemInfo
Returns true if this ItemInfo denotes a node, false otherwise.

Specified by:
denotesNode in interface ItemInfo
Returns:
true if this ItemInfo denotes a node, false otherwise.

getId

public NodeId getId()
Description copied from interface: NodeInfo
Returns the NodeId for the node that is based on this info object.

Specified by:
getId in interface ItemInfo
Specified by:
getId in interface NodeInfo
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: NodeInfo
Index of the node.

Specified by:
getIndex in interface NodeInfo
Returns:
the index.

getNodetype

public Name getNodetype()
Specified by:
getNodetype in interface NodeInfo
Returns:
Name representing the name of the primary nodetype.

getMixins

public Name[] getMixins()
Specified by:
getMixins in interface NodeInfo
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: NodeInfo
Return the Ids of the properties that are referencing the node based on this info object.

Specified by:
getReferences in interface NodeInfo
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:
getPropertyIds in interface NodeInfo
Returns:
Ids of children properties
See Also:
PropertyInfo.getId()

getChildInfos

public Iterator<ChildInfo> getChildInfos()
Description copied from interface: NodeInfo
Return the all ChildInfos of the node represent by this info, an empty iterator if that node doesn't have any child nodes or null if the implementation is not able or for some internal reasons not willing to compute the ChildInfo iterator. In the latter case the user of this API must call RepositoryService.getChildInfos(SessionInfo, NodeId) in order to determine the existence and identity of the child nodes.

Specified by:
getChildInfos in interface NodeInfo
Returns:
An iterator of ChildInfos or null if the implementation is not able or willing to compute the set of ChildInfos (e.g. an implementation may choose to return null if there is a huge amount of child nodes). In this case RepositoryService.getChildInfos(SessionInfo, NodeId) will be used to load the ChildInfos.

getPath

public Path getPath()
Description copied from interface: ItemInfo
Returns the Path of the item represented by this ItemInfo.

Specified by:
getPath in interface ItemInfo
Returns:
the Path of the item represented by this item info.
See Also:
ItemInfo.getPath()


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