public abstract class AbstractNodeData extends ItemData
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNodeData(ItemId id)
Create a new instance of this class.
|
protected |
AbstractNodeData(NodeState state,
ItemManager itemMgr)
Create a new instance of this class.
|
| Modifier and Type | Method and Description |
|---|---|
NodeDefinition |
getNodeDefinition()
Return the associated node definition.
|
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 definition.
|
protected void |
setPrimaryParentId(NodeId primaryParentId)
Set the primary parent id of this node.
|
getDefinition, getId, getState, getStatus, setDefinition, setState, setStatus, toStringprotected AbstractNodeData(NodeState state, ItemManager itemMgr)
state - node stateitemMgr - item managerprotected AbstractNodeData(ItemId id)
id - item idpublic 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 idCopyright © 2004–2022 The Apache Software Foundation. All rights reserved.