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, org.apache.jackrabbit.spi.ItemInfo, org.apache.jackrabbit.spi.NodeInfo

public class NodeInfoImpl
extends ItemInfoImpl
implements org.apache.jackrabbit.spi.NodeInfo

NodeInfoImpl implements a serializable NodeInfo based on another node info.

See Also:
Serialized Form

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

Parameters:
nodeInfo -

getId

public org.apache.jackrabbit.spi.NodeId getId()

Specified by:
getId in interface org.apache.jackrabbit.spi.ItemInfo
Specified by:
getId in interface org.apache.jackrabbit.spi.NodeInfo

getIndex

public int getIndex()

Specified by:
getIndex in interface org.apache.jackrabbit.spi.NodeInfo

getNodetype

public org.apache.jackrabbit.spi.Name getNodetype()

Specified by:
getNodetype in interface org.apache.jackrabbit.spi.NodeInfo

getMixins

public org.apache.jackrabbit.spi.Name[] getMixins()

Specified by:
getMixins in interface org.apache.jackrabbit.spi.NodeInfo

getReferences

public org.apache.jackrabbit.spi.PropertyId[] getReferences()

Specified by:
getReferences in interface org.apache.jackrabbit.spi.NodeInfo

getPropertyIds

public Iterator<org.apache.jackrabbit.spi.PropertyId> getPropertyIds()

Specified by:
getPropertyIds in interface org.apache.jackrabbit.spi.NodeInfo

getChildInfos

public Iterator<org.apache.jackrabbit.spi.ChildInfo> getChildInfos()

Specified by:
getChildInfos in interface org.apache.jackrabbit.spi.NodeInfo


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