|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.jackrabbit.core.state.ItemState org.apache.jackrabbit.core.state.PropertyState
PropertyState
represents the state of a Property
.
Field Summary |
Fields inherited from class org.apache.jackrabbit.core.state.ItemState |
overlayedState, status, STATUS_EXISTING, STATUS_EXISTING_MODIFIED, STATUS_EXISTING_REMOVED, STATUS_NEW, STATUS_STALE_DESTROYED, STATUS_STALE_MODIFIED, STATUS_UNDEFINED |
Constructor Summary | |
PropertyState(PropertyId id,
int initialStatus,
boolean isTransient)
Create a new PropertyState |
|
PropertyState(PropertyState overlayedState,
int initialStatus,
boolean isTransient)
Constructs a new property state that is initially connected to an overlayed state. |
Method Summary | |
protected void |
copy(ItemState state)
Copy state information from another state into this state |
PropDefId |
getDefinitionId()
Returns the id of the definition applicable to this property state. |
ItemId |
getId()
Returns the identifier of this item. |
QName |
getName()
Returns the name of this property. |
NodeId |
getParentId()
Returns the NodeId of the parent NodeState or null
if either this item state represents the root node or this item state is
'free floating', i.e. not attached to the repository's hierarchy. |
PropertyId |
getPropertyId()
Returns the identifier of this property. |
int |
getType()
Returns the type of this property. |
InternalValue[] |
getValues()
Returns the value(s) of this property. |
boolean |
isMultiValued()
Returns true if this property is multi-valued, otherwise false. |
boolean |
isNode()
Determines if this item state represents a node. |
void |
setDefinitionId(PropDefId defId)
Sets the id of the definition applicable to this property state. |
void |
setMultiValued(boolean multiValued)
Sets the flag indicating whether this property is multi-valued. |
void |
setType(int type)
Sets the type of this property. |
void |
setValues(InternalValue[] values)
Sets the value(s) of this property. |
Methods inherited from class org.apache.jackrabbit.core.state.ItemState |
addListener, connect, discard, disconnect, getModCount, getOverlayedState, getStatus, hasOverlayedState, isStale, isTransient, notifyStateCreated, notifyStateDestroyed, notifyStateDiscarded, notifyStateUpdated, reconnect, removeListener, setModCount, setStatus, stateCreated, stateDestroyed, stateDiscarded, stateModified |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public PropertyState(PropertyState overlayedState, int initialStatus, boolean isTransient)
overlayedState
- the backing property state being overlayedinitialStatus
- the initial status of the property state objectisTransient
- flag indicating whether this state is transient or notpublic PropertyState(PropertyId id, int initialStatus, boolean isTransient)
PropertyState
id
- id of the propertyinitialStatus
- the initial status of the property state objectisTransient
- flag indicating whether this state is transient or notMethod Detail |
protected void copy(ItemState state)
copy
in class ItemState
state
- source state informationpublic boolean isNode()
isNode
in class ItemState
ItemState.isNode()
public ItemId getId()
getId
in class ItemState
public PropertyId getPropertyId()
public NodeId getParentId()
NodeState
or null
if either this item state represents the root node or this item state is
'free floating', i.e. not attached to the repository's hierarchy.
getParentId
in class ItemState
NodeState
's Idpublic QName getName()
public void setType(int type)
type
- the type to be setPropertyType
public void setMultiValued(boolean multiValued)
multiValued
- flag indicating whether this property is multi-valuedpublic int getType()
PropertyType
public boolean isMultiValued()
public PropDefId getDefinitionId()
public void setDefinitionId(PropDefId defId)
defId
- the id of the definitionpublic void setValues(InternalValue[] values)
values
- the new valuespublic InternalValue[] getValues()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |