|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.spi2davex.ItemInfoImpl
org.apache.jackrabbit.spi2davex.NodeInfoImpl
public class NodeInfoImpl
NodeInfoImpl
...
Constructor Summary | |
---|---|
NodeInfoImpl(NodeId id,
Path path)
Creates a new NodeInfo . |
Method Summary | |
---|---|
Iterator |
getChildInfos()
Return the 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()
|
Iterator |
getPropertyIds()
|
PropertyId[] |
getReferences()
Return the Id s of the properties that are referencing the
node based on this info object. |
Methods inherited from class org.apache.jackrabbit.spi2davex.ItemInfoImpl |
---|
denotesNode, getName, 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 |
---|
public NodeInfoImpl(NodeId id, Path path) throws RepositoryException
NodeInfo
.
id
- The node id.path
- the path to this item.
RepositoryException
- If an error occurs.Method Detail |
---|
public NodeId getId()
NodeInfo
NodeId
for the node that is based on this info
object.
getId
in interface NodeInfo
RepositoryService.getNodeInfo(SessionInfo, NodeId)
public int getIndex()
NodeInfo
getIndex
in interface NodeInfo
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()
NodeInfo
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 Iterator getPropertyIds()
getPropertyIds
in interface NodeInfo
Id
s of children propertiesPropertyInfo.getId()
public Iterator getChildInfos()
NodeInfo
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |