org.apache.jackrabbit.spi.commons
Class NodeInfoImpl

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.ItemInfoImpl
      extended by org.apache.jackrabbit.spi.commons.NodeInfoImpl
All Implemented Interfaces:
Serializable, ItemInfo, NodeInfo

public class NodeInfoImpl
extends ItemInfoImpl
implements NodeInfo

NodeInfoImpl implements a serializable NodeInfo based on another node info.

See Also:
Serialized Form

Constructor Summary
NodeInfoImpl(NodeId parentId, Name name, Path path, NodeId id, int index, Name primaryTypeName, Name[] mixinNames, Iterator references, Iterator propertyIds, Iterator childInfos)
          Deprecated. Use #NodeInfoImpl(Name, Path, NodeId, int, Name, Name[], Iterator, Iterator) instead. The parentId is not used any more.
NodeInfoImpl(Path path, NodeId id, int index, Name primaryTypeName, Name[] mixinNames, Iterator references, Iterator propertyIds, Iterator childInfos)
          Creates a new node info from the given parameters.
 
Method Summary
static NodeInfo createSerializableNodeInfo(NodeInfo nodeInfo, IdFactory idFactory)
          Creates a new serializable NodeInfo for the given NodeInfo.
 Iterator getChildInfos()
          
 NodeId getId()
          
 int getIndex()
          
 Name[] getMixins()
          
 Name getNodetype()
          
 Iterator getPropertyIds()
          
 PropertyId[] getReferences()
          
 
Methods inherited from class org.apache.jackrabbit.spi.commons.ItemInfoImpl
denotesNode, 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 parentId,
                    Name name,
                    Path path,
                    NodeId id,
                    int index,
                    Name primaryTypeName,
                    Name[] mixinNames,
                    Iterator references,
                    Iterator propertyIds,
                    Iterator childInfos)
Deprecated. Use #NodeInfoImpl(Name, Path, NodeId, int, Name, Name[], Iterator, Iterator) instead. The parentId is not used any more.

Creates a new node info from the given parameters.

Parameters:
parentId - the parent id.
name - the name of this item.
path - the path to this item.
id - the id of this item.
index - the index of this item.
primaryTypeName - the name of the primary node type.
mixinNames - the names of the assigned mixins.
references - the references to this node.
propertyIds - the properties of this node.
childInfos - the child infos of this node or null.

NodeInfoImpl

public NodeInfoImpl(Path path,
                    NodeId id,
                    int index,
                    Name primaryTypeName,
                    Name[] mixinNames,
                    Iterator references,
                    Iterator propertyIds,
                    Iterator childInfos)
Creates a new node info from the given parameters.

Parameters:
path - the path to this item.
id - the id of this item.
index - the index of this item.
primaryTypeName - the name of the primary node type.
mixinNames - the names of the assigned mixins.
references - the references to this node.
propertyIds - the properties of this node.
Method Detail

createSerializableNodeInfo

public static NodeInfo createSerializableNodeInfo(NodeInfo nodeInfo,
                                                  IdFactory idFactory)
Creates a new serializable NodeInfo for the given NodeInfo.

Parameters:
nodeInfo -

getId

public NodeId getId()

Specified by:
getId in interface NodeInfo

getIndex

public int getIndex()

Specified by:
getIndex in interface NodeInfo

getNodetype

public Name getNodetype()

Specified by:
getNodetype in interface NodeInfo

getMixins

public Name[] getMixins()

Specified by:
getMixins in interface NodeInfo

getReferences

public PropertyId[] getReferences()

Specified by:
getReferences in interface NodeInfo

getPropertyIds

public Iterator getPropertyIds()

Specified by:
getPropertyIds in interface NodeInfo

getChildInfos

public Iterator getChildInfos()

Specified by:
getChildInfos in interface NodeInfo


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