public abstract class ItemData extends Object
ItemImpl
instances that
all represent the same item, i.e. items having the same ItemId
.Modifier | Constructor and Description |
---|---|
protected |
ItemData(ItemId id)
Create a new instance of this class.
|
protected |
ItemData(ItemState state,
ItemManager itemMgr)
Create a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
javax.jcr.nodetype.ItemDefinition |
getDefinition()
Return the associated item definition.
|
ItemId |
getId()
Return the id associated with this item.
|
NodeId |
getParentId()
Return the parent id of this item.
|
ItemState |
getState()
Return the associated item state.
|
int |
getStatus()
Return the status.
|
boolean |
isNode()
Return a flag indicating whether item is a node.
|
protected void |
setDefinition(javax.jcr.nodetype.ItemDefinition definition)
Set the associated item definition.
|
protected void |
setState(ItemState state)
Set the associated item state.
|
protected void |
setStatus(int status)
Set the status.
|
String |
toString() |
protected ItemData(ItemState state, ItemManager itemMgr)
state
- item stateitemMgr
- item managerprotected ItemData(ItemId id)
id
- item idpublic ItemState getState()
protected void setState(ItemState state)
state
- item statepublic javax.jcr.nodetype.ItemDefinition getDefinition() throws javax.jcr.RepositoryException
javax.jcr.RepositoryException
- if the definition cannot be retrieved.protected void setDefinition(javax.jcr.nodetype.ItemDefinition definition)
definition
- item definitionpublic int getStatus()
protected void setStatus(int status)
status
- public boolean isNode()
true
if this item is a node;
false
otherwise.public ItemId getId()
public NodeId getParentId()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.