public abstract class Script_Event extends Script_Conditions
| Modifier and Type | Field and Description |
|---|---|
protected java.util.ArrayList<Script_Event> |
subEvents
List of sub-events.
|
protected java.util.ArrayList<Script_Variable> |
varMap
List of variable names to map to instances in the method.
|
filter, function, operation, sourceid, internalID, keyLong, name, namespace, objType, parentElement, value| Constructor and Description |
|---|
Script_Event(org.licas_xml.abs.Element autoXml)
Create a new instance of Script_Event and add the xml-based description of the
element values.
|
Script_Event(java.lang.String scriptType,
java.lang.String elemID)
Create a new instance of Script_Event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addEvent(Script_Event subEvent)
Add a sub-event to this event.
|
void |
addVariable(Script_Variable var)
Add a variable mapping.
|
java.util.ArrayList<Script_Event> |
getEvents()
Retrieve the list of sub-events of this event.
|
java.util.ArrayList<Script_Variable> |
getVariables()
Retrieve the list of sub-events of this event.
|
java.util.HashMap<java.lang.String,Script_Element> |
setForUse()
Initialise the script model to be used.
|
org.licas_xml.abs.Element |
toXml()
Convert the contents of this Script_Element into an XML-only format.
|
boolean |
usesSubEvents()
Return true if the script element can have sub-events.
|
getFilter, getFunction, getOperation, getSource, setFilter, setFunction, setOperation, setSourcegetID, getInternalID, getName, getNamespace, getObjType, getParent, getScriptUuid, getValue, processThis, setNamespace, setObjType, setParent, setValue, setValueprotected java.util.ArrayList<Script_Event> subEvents
protected java.util.ArrayList<Script_Variable> varMap
public Script_Event(java.lang.String scriptType,
java.lang.String elemID)
scriptType - the script element type. This is also the element tag name
and should not be null.elemID - this is the external id used to identify this element specifically. The
element is also stored under this value and so it cannot be null.public Script_Event(org.licas_xml.abs.Element autoXml)
throws java.lang.Exception
autoXml - the xml-based description of values to add.java.lang.Exception - any error.public java.util.HashMap<java.lang.String,Script_Element> setForUse()
setForUse in class Script_Elementpublic boolean usesSubEvents()
usesSubEvents in class Script_Elementpublic void addEvent(Script_Event subEvent)
subEvent - the sub-event to add.public java.util.ArrayList<Script_Event> getEvents()
public void addVariable(Script_Variable var)
var - the variable mapping.public java.util.ArrayList<Script_Variable> getVariables()
public org.licas_xml.abs.Element toXml()
throws java.lang.Exception
toXml in class Script_Conditionsjava.lang.Exception - any error.