|
||||||||||
| 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,
ItemManager itemMgr)
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,
ItemManager itemMgr)
state - node stateitemMgr - item managerprotected AbstractNodeData(ItemId id)
id - item id| Method Detail |
|---|
public NodeState getNodeState()
public NodeDefinition getNodeDefinition()
throws RepositoryException
RepositoryException - if the definition cannot be retrieved.public void setNodeDefinition(NodeDefinition definition)
definition - new node definitionpublic NodeId getParentId()
getParentId in class ItemDatapublic NodeId getPrimaryParentId()
null
for nodes that are not shareable.
nullprotected void setPrimaryParentId(NodeId primaryParentId)
primaryParentId - primary parent idpublic boolean isNode()
isNode in class ItemDatatrue if this item is a node;
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||