public class Script_VarMap extends Script_VariableInstance
id, internalID, keyLong, name, namespace, objType, parentElement, value| Constructor and Description |
|---|
Script_VarMap(org.licas_xml.abs.Element autoXml)
Create a new instance of Script_VarMap and add the xml-based description of the
element values.
|
Script_VarMap(java.lang.String scriptType,
java.lang.String elemID)
Create a new instance of Script_VarMap.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addValue(java.lang.String varName,
java.lang.String value)
Add a new key-value pair.
|
java.lang.Object |
getValue()
Get the VarMap value.
|
org.licas_xml.abs.Element |
toXml()
Convert the contents of this Script_Element into an XML-only format.
|
getID, getInternalID, getName, getNamespace, getObjType, getParent, getScriptUuid, processThis, setForUse, setNamespace, setObjType, setParent, setValue, setValue, usesSubEventspublic Script_VarMap(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_VarMap(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 void addValue(java.lang.String varName,
java.lang.String value)
varName - the variable name the value is for.value - the variable value.public java.lang.Object getValue()
getValue in class Script_Elementpublic org.licas_xml.abs.Element toXml()
throws java.lang.Exception
toXml in class Script_Elementjava.lang.Exception - any error.