|
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 de.spieleck.app.jacson.ant.ProjectJacsonState
Wrap the ant Project to an JacsonState, so that the JacsonTask can read/write Ant properties.
Field Summary | |
protected Project |
proj
|
Fields inherited from class de.spieleck.app.jacson.JacsonState |
attributes, chunkNo, parent |
Constructor Summary | |
ProjectJacsonState(Project proj)
Create a ProjectJacsonState to wrap a Project. |
|
ProjectJacsonState(Project proj,
java.util.List params)
Create a ProjectJacsonState to wrap a Project and overwrite some properties by the Task params. |
Method Summary | |
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 |
getLocalKeySet()
What keys do we have locally ? |
protected JacsonState |
getParent()
|
protected JacsonState |
getRoot()
|
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. |
Methods inherited from class de.spieleck.app.jacson.JacsonState |
expand, get, getChunkNo, getKeySet, getLocal, getParam, incChunkNo, put, putLocal, set, setParent |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Project proj
Constructor Detail |
public ProjectJacsonState(Project proj)
public ProjectJacsonState(Project proj, java.util.List params)
Method Detail |
public java.lang.Object getContextual(java.lang.String key)
JacsonState
getContextual
in class JacsonState
public java.lang.Object getGlobal(java.lang.String key)
JacsonState
getGlobal
in class JacsonState
public void putContext(java.lang.String key, java.lang.Object value)
JacsonState
putContext
in class JacsonState
key
- the name of the objectvalue
- the object to be rememberedpublic java.util.Set getLocalKeySet()
JacsonState
getLocalKeySet
in class JacsonState
public void putGlobal(java.lang.String key, java.lang.Object value)
JacsonState
putGlobal
in class JacsonState
key
- the name of the objectvalue
- the object to be rememberedprotected JacsonState getRoot()
getRoot
in class JacsonState
protected JacsonState getParent()
getParent
in class JacsonState
|
Spieleck | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |