public class Script_Element
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
id
An external unique identifier, so that the element can be referenced by other elements
|
protected java.lang.String |
internalID
Unique internal identifier
|
static long |
keyLong
For generating a unique key value
|
protected java.lang.String |
name
The element name
|
protected java.lang.String |
namespace
The target namespace
|
protected java.lang.String |
objType
The Object type the script element relates to
|
protected Script_Element |
parentElement
The parent element of this one
|
protected java.lang.Object |
value
The element value, which can be text or an element.
|
| Constructor and Description |
|---|
Script_Element(org.licas_xml.abs.Element autoXml)
Create a new instance of Script_Element and add the xml-based description of the
element values.
|
Script_Element(java.lang.String scriptType,
java.lang.String elemID)
Create a new instance of Script_Element.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getID()
Get the external unique identifier, so that the element can be referenced by other elements.
|
java.lang.String |
getInternalID()
Get the internal id value that uniquely identifies this process part.
|
java.lang.String |
getName()
Get the name of this element, similar to an XML tag name and should identify its type.
|
java.lang.String |
getNamespace()
Get the target namespace of this element.
|
java.lang.String |
getObjType()
Get the object type the script element relates to.
|
Script_Element |
getParent()
Get the parent element.
|
protected static java.lang.String |
getScriptUuid()
Create and return a unique uuid.
|
java.lang.Object |
getValue()
Get the element value.
|
boolean |
processThis()
Return true if this specific element contains conditions to evaluate.
|
java.util.HashMap<java.lang.String,Script_Element> |
setForUse()
Initialise the script model to be used.
|
void |
setNamespace(java.lang.String thisNamespace)
Set the target namespace for this element.
|
void |
setObjType(java.lang.String thisObjType)
Set the object type the script element relates to.
|
void |
setParent(Script_Element parent)
Set the parent element.
|
void |
setValue(java.lang.Object thisValue)
Set the element value.
|
void |
setValue(java.lang.Object thisValue,
org.licas_xml.abs.Element addTo)
Set the element value in the XML element.
|
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.
|
public static long keyLong
protected java.lang.String name
protected java.lang.String namespace
protected java.lang.String id
protected java.lang.String internalID
protected java.lang.String objType
protected java.lang.Object value
protected Script_Element parentElement
public Script_Element(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_Element(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 boolean processThis()
public java.util.HashMap<java.lang.String,Script_Element> setForUse()
public boolean usesSubEvents()
public java.lang.String getName()
public void setNamespace(java.lang.String thisNamespace)
thisNamespace - the ontology namespace.public java.lang.String getNamespace()
public java.lang.String getID()
public java.lang.String getInternalID()
public void setObjType(java.lang.String thisObjType)
thisObjType - reference to the type of actual object.public java.lang.String getObjType()
public void setValue(java.lang.Object thisValue,
org.licas_xml.abs.Element addTo)
thisValue - the element value, either a text or an XML element value.addTo - the xml element to add the value to.public void setValue(java.lang.Object thisValue)
thisValue - the element value.public java.lang.Object getValue()
public void setParent(Script_Element parent)
parent - the parent script element.public Script_Element getParent()
public org.licas_xml.abs.Element toXml()
throws java.lang.Exception
java.lang.Exception - any error.protected static java.lang.String getScriptUuid()