|
Jacson | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.spieleck.app.jacson.JacsonState
The state of the Jacson Engine. A parameter map, a chunk counter. JacsonBlock puts some life scoping arround this.
Field Summary | |
protected java.util.Map |
attributes
Storage for (local) attributes |
protected int |
chunkNo
The chunk Counter |
protected JacsonState |
parent
The parent state (for attributes inheritance) |
Constructor Summary | |
JacsonState()
|
|
JacsonState(JacsonState parent)
Nested constructor for scoping. |
Method Summary | |
java.lang.String |
expand(java.lang.String input)
Expand a string (i.e. expand parameter references) |
java.lang.Object |
get(java.lang.String key)
Get a value to a given key. |
int |
getChunkNo()
Get the current chunk count. |
java.lang.Object |
getContextual(java.lang.String key)
Get the value to a given key, searching locally and then the parent. |
java.lang.Object |
getGlobal(java.lang.String key)
Get the value from the root (no parent) state. |
java.util.Set |
getKeySet()
What keys do we have locally or in the inheritance hierarchy. |
java.lang.Object |
getLocal(java.lang.String key)
Get the value to a given key only search the key locally. |
java.util.Set |
getLocalKeySet()
What keys do we have locally ? |
java.lang.String |
getParam(java.lang.String key)
Wrap get(java.lang.String) to SimpleParamGetter.getParam(java.lang.String) for compatibility |
protected JacsonState |
getParent()
|
protected JacsonState |
getRoot()
|
void |
incChunkNo()
Increment the chunk count. |
void |
put(java.lang.String key,
java.lang.Object value)
Store a key,value pair in the state. |
void |
putContext(java.lang.String key,
java.lang.Object value)
Store the key/value pair in the most local context containing this key. |
void |
putGlobal(java.lang.String key,
java.lang.Object value)
Store key/value pair in the root state. |
void |
putLocal(java.lang.String key,
java.lang.Object value)
Store a key/value pair in the local memory. |
void |
set(java.lang.String key,
java.lang.String value)
Wrap put(java.lang.String, java.lang.Object) as
ConfigParamMap.set(java.lang.String, java.lang.String) for compatibility |
void |
setParent(JacsonState parent)
Register the parent state of this state. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected int chunkNo
protected JacsonState parent
protected java.util.Map attributes
Constructor Detail |
public JacsonState()
public JacsonState(JacsonState parent)
Method Detail |
public void setParent(JacsonState parent)
public void incChunkNo()
public int getChunkNo()
public java.lang.Object get(java.lang.String key)
public java.lang.Object getLocal(java.lang.String key)
public java.lang.Object getContextual(java.lang.String key)
public java.lang.Object getGlobal(java.lang.String key)
public void put(java.lang.String key, java.lang.Object value)
key
- the name of the objectvalue
- the object to be rememberedpublic void putLocal(java.lang.String key, java.lang.Object value)
key
- the name of the objectvalue
- the object to be rememberedpublic void putContext(java.lang.String key, java.lang.Object value)
key
- the name of the objectvalue
- the object to be rememberedpublic void putGlobal(java.lang.String key, java.lang.Object value)
key
- the name of the objectvalue
- the object to be rememberedpublic java.util.Set getLocalKeySet()
public java.util.Set getKeySet()
protected JacsonState getRoot()
protected JacsonState getParent()
public void set(java.lang.String key, java.lang.String value)
put(java.lang.String, java.lang.Object)
as
ConfigParamMap.set(java.lang.String, java.lang.String)
for compatibility
set
in interface ConfigParamMap
public java.lang.String getParam(java.lang.String key)
get(java.lang.String)
to SimpleParamGetter.getParam(java.lang.String)
for compatibility
getParam
in interface SimpleParamGetter
public java.lang.String expand(java.lang.String input)
ConfigParamMap
expand
in interface ConfigParamMap
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |