Class NodeInfoImpl
- java.lang.Object
-
- org.apache.jackrabbit.spi.commons.ItemInfoImpl
-
- 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
NodeInfoImplimplements a serializableNodeInfobased on another node info.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description 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.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
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static org.apache.jackrabbit.spi.NodeInfocreateSerializableNodeInfo(org.apache.jackrabbit.spi.NodeInfo nodeInfo, org.apache.jackrabbit.spi.IdFactory idFactory)Creates a new serializableNodeInfofor the givenNodeInfo.Iterator<org.apache.jackrabbit.spi.ChildInfo>getChildInfos()org.apache.jackrabbit.spi.NodeIdgetId()intgetIndex()org.apache.jackrabbit.spi.Name[]getMixins()org.apache.jackrabbit.spi.NamegetNodetype()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
-
-
-
-
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.UseNodeInfoImpl(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 ornull.
-
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 serializableNodeInfofor the givenNodeInfo.- Parameters:
nodeInfo-
-
getId
public org.apache.jackrabbit.spi.NodeId getId()
- Specified by:
getIdin interfaceorg.apache.jackrabbit.spi.ItemInfo- Specified by:
getIdin interfaceorg.apache.jackrabbit.spi.NodeInfo
-
getIndex
public int getIndex()
- Specified by:
getIndexin interfaceorg.apache.jackrabbit.spi.NodeInfo
-
getNodetype
public org.apache.jackrabbit.spi.Name getNodetype()
- Specified by:
getNodetypein interfaceorg.apache.jackrabbit.spi.NodeInfo
-
getMixins
public org.apache.jackrabbit.spi.Name[] getMixins()
- Specified by:
getMixinsin interfaceorg.apache.jackrabbit.spi.NodeInfo
-
getReferences
public org.apache.jackrabbit.spi.PropertyId[] getReferences()
- Specified by:
getReferencesin interfaceorg.apache.jackrabbit.spi.NodeInfo
-
getPropertyIds
public Iterator<org.apache.jackrabbit.spi.PropertyId> getPropertyIds()
- Specified by:
getPropertyIdsin interfaceorg.apache.jackrabbit.spi.NodeInfo
-
getChildInfos
public Iterator<org.apache.jackrabbit.spi.ChildInfo> getChildInfos()
- Specified by:
getChildInfosin interfaceorg.apache.jackrabbit.spi.NodeInfo
-
-