public class NodeInfoImpl extends ItemInfoImpl implements NodeInfo
NodeInfoImpl
implements a serializable NodeInfo
based on another node info.Constructor and Description |
---|
NodeInfoImpl(NodeId parentId,
Name name,
Path path,
NodeId id,
int index,
Name primaryTypeName,
Name[] mixinNames,
java.util.Iterator<PropertyId> references,
java.util.Iterator<PropertyId> propertyIds,
java.util.Iterator<ChildInfo> childInfos)
Deprecated.
Use
NodeInfoImpl(Path, NodeId, int, Name, Name[], Iterator, Iterator, Iterator)
instead. The parentId is not used any more. |
NodeInfoImpl(Path path,
NodeId id,
int index,
Name primaryTypeName,
Name[] mixinNames,
java.util.Iterator<PropertyId> references,
java.util.Iterator<PropertyId> propertyIds,
java.util.Iterator<ChildInfo> childInfos)
Creates a new node info from the given parameters.
|
Modifier and Type | Method and Description |
---|---|
static NodeInfo |
createSerializableNodeInfo(NodeInfo nodeInfo,
IdFactory idFactory)
Creates a new serializable
NodeInfo for the given
NodeInfo . |
java.util.Iterator<ChildInfo> |
getChildInfos()
Return all
ChildInfo s 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() |
java.util.Iterator<PropertyId> |
getPropertyIds() |
PropertyId[] |
getReferences()
Return the
Id s of the properties that are referencing the
node based on this info object. |
denotesNode, getPath
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
denotesNode, getPath
public NodeInfoImpl(NodeId parentId, Name name, Path path, NodeId id, int index, Name primaryTypeName, Name[] mixinNames, java.util.Iterator<PropertyId> references, java.util.Iterator<PropertyId> propertyIds, java.util.Iterator<ChildInfo> childInfos)
NodeInfoImpl(Path, NodeId, int, Name, Name[], Iterator, Iterator, Iterator)
instead. The parentId is not used any more.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
.public NodeInfoImpl(Path path, NodeId id, int index, Name primaryTypeName, Name[] mixinNames, java.util.Iterator<PropertyId> references, java.util.Iterator<PropertyId> propertyIds, java.util.Iterator<ChildInfo> childInfos)
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.public static NodeInfo createSerializableNodeInfo(NodeInfo nodeInfo, IdFactory idFactory)
NodeInfo
for the given
NodeInfo
.nodeInfo
- public NodeId getId()
NodeId
for the node that is based on this info
object.getId
in interface ItemInfo
getId
in interface NodeInfo
RepositoryService.getNodeInfo(SessionInfo, NodeId)
public int getIndex()
public Name getNodetype()
getNodetype
in interface NodeInfo
Name
representing the name of the primary nodetype.public Name[] getMixins()
getMixins
in interface NodeInfo
Name
s 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.public PropertyId[] getReferences()
Id
s of the properties that are referencing the
node based on this info object.getReferences
in interface NodeInfo
Id
s 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.PropertyInfo.getId()
public java.util.Iterator<PropertyId> getPropertyIds()
getPropertyIds
in interface NodeInfo
Id
s of children propertiesPropertyInfo.getId()
public java.util.Iterator<ChildInfo> getChildInfos()
ChildInfo
s 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.getChildInfos
in interface NodeInfo
ChildInfo
s or null
if
the implementation is not able or willing to compute the set of
ChildInfo
s (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 ChildInfo
s.Copyright © 2010 - 2020 Adobe. All Rights Reserved