|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.jackrabbit.core.state.ItemState
org.apache.jackrabbit.core.state.NodeState
org.apache.jackrabbit.core.virtual.VirtualNodeState
public class VirtualNodeState
This Class implements a virtual node state
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.jackrabbit.core.state.NodeState |
---|
NodeState.ChildNodeEntry |
Field Summary | |
---|---|
protected VirtualItemStateProvider |
stateMgr
The virtual item state provide that created this node state |
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 | |
---|---|
VirtualNodeState(AbstractVISProvider stateMgr,
NodeId parentId,
NodeId id,
Name nodeTypeName,
Name[] mixins)
creates a new virtual node state |
Method Summary | |
---|---|
void |
addStateReference(NodeState state)
Adds a hard reference to another state |
protected VirtualPropertyState |
getOrCreatePropertyState(Name name,
int type,
boolean multiValued)
Retrieves or creates a new property state as child property of this node |
VirtualPropertyState[] |
getProperties()
Returns the properties of this node |
VirtualPropertyState |
getProperty(Name name)
returns the property state of the given name |
InternalValue |
getPropertyValue(Name name)
Returns the value of the given property or null |
InternalValue[] |
getPropertyValues(Name name)
Returns the values of the given property of null |
void |
setMixinNodeTypes(Name[] mixins)
sets the mixing node type and adds the respective property |
void |
setPropertyValue(Name name,
InternalValue value)
Sets the property value |
void |
setPropertyValues(Name name,
int type,
InternalValue[] values)
Sets the property values |
void |
setPropertyValues(Name name,
int type,
InternalValue[] values,
boolean multiple)
Sets the property values |
Methods inherited from class org.apache.jackrabbit.core.state.ItemState |
---|
connect, discard, disconnect, getContainer, getModCount, getOverlayedState, getStatus, hasOverlayedState, isConnected, isStale, isTransient, notifyStateCreated, notifyStateDestroyed, notifyStateDiscarded, notifyStateUpdated, reconnect, setModCount, setStatus |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final VirtualItemStateProvider stateMgr
Constructor Detail |
---|
public VirtualNodeState(AbstractVISProvider stateMgr, NodeId parentId, NodeId id, Name nodeTypeName, Name[] mixins) throws RepositoryException
stateMgr
- parentId
- id
- nodeTypeName
- mixins
-
RepositoryException
Method Detail |
---|
public VirtualPropertyState[] getProperties()
public InternalValue[] getPropertyValues(Name name) throws NoSuchItemStateException
null
name
-
NoSuchItemStateException
public InternalValue getPropertyValue(Name name) throws NoSuchItemStateException
null
name
-
NoSuchItemStateException
public VirtualPropertyState getProperty(Name name) throws NoSuchItemStateException
name
-
NoSuchItemStateException
public void setPropertyValue(Name name, InternalValue value) throws RepositoryException
name
- value
-
RepositoryException
public void setPropertyValues(Name name, int type, InternalValue[] values) throws RepositoryException
name
- type
- values
-
RepositoryException
public void setPropertyValues(Name name, int type, InternalValue[] values, boolean multiple) throws RepositoryException
name
- type
- values
-
RepositoryException
protected VirtualPropertyState getOrCreatePropertyState(Name name, int type, boolean multiValued) throws RepositoryException
name
- type
- multiValued
-
RepositoryException
public void setMixinNodeTypes(Name[] mixins) throws RepositoryException
mixins
-
RepositoryException
public void addStateReference(NodeState state)
state
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |