|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jtheque.core.managers.state.AbstractState
public abstract class AbstractState
An abstract state.
Constructor Summary | |
---|---|
AbstractState()
|
Method Summary | |
---|---|
void |
delegateLoad(java.util.List<NodeState> nodes)
Delegate the load. |
java.util.List<NodeState> |
delegateSave()
Delegate the save. |
java.util.List<java.lang.String> |
getProperties()
Return all the properties of the state. |
java.lang.String |
getProperty(java.lang.String key)
Return the property referenced by a certain key. |
java.lang.String |
getProperty(java.lang.String key,
java.lang.String defaults)
Return the property referenced by a certain key or a default value if the property doesn't exist. |
boolean |
isDelegated()
Indicate if the write and read operations are delegated to the state or are standard managed by the statemanager. |
void |
setProperty(java.lang.String key,
java.lang.String value)
Set the property. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractState()
Method Detail |
---|
public final java.lang.String getProperty(java.lang.String key)
IState
getProperty
in interface IState
key
- The property key.
public final java.lang.String getProperty(java.lang.String key, java.lang.String defaults)
IState
getProperty
in interface IState
key
- The property key.defaults
- The default value if we don't find the property.
public final void setProperty(java.lang.String key, java.lang.String value)
IState
setProperty
in interface IState
key
- The property key.value
- The property value.public final java.util.List<java.lang.String> getProperties()
IState
getProperties
in interface IState
public boolean isDelegated()
IState
isDelegated
in interface IState
public java.util.List<NodeState> delegateSave()
IState
delegateSave
in interface IState
public void delegateLoad(java.util.List<NodeState> nodes)
IState
delegateLoad
in interface IState
nodes
- The noads of the state.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |