|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.ItemData
org.apache.jackrabbit.core.AbstractNodeData
public abstract class AbstractNodeData
Data object representing a node.
Constructor Summary | |
---|---|
protected |
AbstractNodeData(ItemId id)
Create a new instance of this class. |
protected |
AbstractNodeData(NodeState state,
NodeDefinition definition)
Create a new instance of this class. |
Method Summary | |
---|---|
NodeDefinition |
getNodeDefinition()
Return the associated node defintion. |
NodeState |
getNodeState()
Return the associated node state. |
NodeId |
getParentId()
Return the parent id of this node. |
NodeId |
getPrimaryParentId()
Return the primary parent id of this node. |
boolean |
isNode()
Return a flag indicating whether item is a node. |
void |
setNodeDefinition(NodeDefinition definition)
Sets the associated node defintion. |
protected void |
setPrimaryParentId(NodeId primaryParentId)
Set the primary parent id of this node. |
Methods inherited from class org.apache.jackrabbit.core.ItemData |
---|
getDefinition, getId, getState, getStatus, setDefinition, setState, setStatus, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected AbstractNodeData(NodeState state, NodeDefinition definition)
state
- node statedefinition
- node definitionprotected AbstractNodeData(ItemId id)
id
- item idMethod Detail |
---|
public NodeState getNodeState()
public NodeDefinition getNodeDefinition()
public void setNodeDefinition(NodeDefinition definition)
definition
- new node definitionpublic NodeId getParentId()
getParentId
in class ItemData
public NodeId getPrimaryParentId()
null
for nodes that are not shareable.
null
protected void setPrimaryParentId(NodeId primaryParentId)
primaryParentId
- primary parent idpublic boolean isNode()
isNode
in class ItemData
true
if this item is a node;
false
otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |