|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.waveset.util.AbstractXmlObject
com.waveset.object.VariableScope
An class inherited by classes in a workflow Case that maintain values for variables. This is used with a custom ExState object to allow resolution of external variables referenced by ExNode expressions, through a hierarchy of scopes.
Only used by workflow, might have other uses.
This extends AbstractXmlObject since you usually want that too.
Field Summary | |
static java.lang.String |
code_id
|
Fields inherited from class com.waveset.util.AbstractXmlObject |
_trace |
Constructor Summary | |
VariableScope()
|
Method Summary | |
void |
assimilateLocalVariables(java.util.Map src)
Assimilate a collection of variables. |
void |
clearLocalVariables()
Remove all local variables. |
java.lang.String |
expandVariables(java.lang.String src,
VariableResolver resolver)
Expand any variable references in a string. |
java.lang.Object |
getLocalVariable(java.lang.String name)
Get a variable from the local scope. |
GenericObject |
getLocalVariables()
Get all the variables stored in the scope. |
abstract VariableScope |
getParentScope()
Return the parent scope. |
java.lang.Object |
getVariable(java.lang.String path)
Resolve a variable starting from this scope, forwarding to the parent scope if not defined here. |
GenericObject |
getVariables(java.util.List paths)
Build a single object containing a flat set of values. |
void |
getVariables(java.util.Map map)
Add all variables within this scope into the map, then add our parent's variables. |
abstract boolean |
isVariableDefined(java.lang.String name)
Test to see if the variable is defined in this scope. |
void |
pruneGenericObjects()
Method to make workflow TaskInstances smaller. |
void |
removeLocalVariable(java.lang.String name)
Remove a variable in the local scope. |
java.lang.Object |
resolveVariable(java.lang.String name)
The method defined by the VariableResolver interface. |
void |
setLocalVariable(java.lang.String name,
java.lang.Object value)
Set a variable in the local scope. |
void |
setLocalVariables(java.util.Map src)
Set all of the local variables at once. |
void |
setVariable(java.lang.String path,
java.lang.Object value)
Assign the value of a variable. |
Methods inherited from class com.waveset.util.AbstractXmlObject |
addXmlHeader, cloneObject, dump, dumpFile, getElementName, getReference, println, setTrace, toIdentityString, toVerboseString, toVerboseString, toXml, toXml, toXml, toXml |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String code_id
Constructor Detail |
public VariableScope()
Method Detail |
public abstract VariableScope getParentScope()
public abstract boolean isVariableDefined(java.lang.String name) throws WavesetException
WavesetException
public java.lang.String expandVariables(java.lang.String src, VariableResolver resolver) throws WavesetException
VariableExpander takes a VariableResolver interface, which we implement.
WavesetException
public GenericObject getLocalVariables()
public java.lang.Object getLocalVariable(java.lang.String name)
public void setLocalVariable(java.lang.String name, java.lang.Object value)
public void removeLocalVariable(java.lang.String name)
public void clearLocalVariables()
public void setLocalVariables(java.util.Map src) throws WavesetException
WavesetException
public void assimilateLocalVariables(java.util.Map src) throws WavesetException
WavesetException
public void getVariables(java.util.Map map)
public GenericObject getVariables(java.util.List paths) throws WavesetException
WavesetException
public void pruneGenericObjects()
public java.lang.Object getVariable(java.lang.String path) throws WavesetException
WavesetException
public void setVariable(java.lang.String path, java.lang.Object value) throws WavesetException
WavesetException
public java.lang.Object resolveVariable(java.lang.String name) throws WavesetException
resolveVariable
in interface VariableResolver
WavesetException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |