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 |
|---|---|
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(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 ItemDefinition getDefinition() throws RepositoryException
RepositoryException - if the definition cannot be retrieved.protected void setDefinition(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–2022 The Apache Software Foundation. All rights reserved.