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 | 
|---|---|
javax.jcr.nodetype.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(javax.jcr.nodetype.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 javax.jcr.nodetype.NodeDefinition getNodeDefinition()
                                                    throws javax.jcr.RepositoryException
javax.jcr.RepositoryException - if the definition cannot be retrieved.public void setNodeDefinition(javax.jcr.nodetype.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-2020 The Apache Software Foundation. All Rights Reserved.