public class DynamicExecVariable
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
protected |
DynamicExecVariable(com.uc4.util.XMLDocument doc)
Instantiates a new dynamic Executable variable.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
addParameter(java.lang.String vName,
java.lang.String value)
Adds a new parameter to the
Dynamic Executable Variable. . |
void |
clearParameters()
Removes all Parameters.
|
UC4ObjectName |
getExecObject()
Gets the executable object name.
|
java.lang.String |
getParameter(java.lang.String key)
Gets the parameter from given key.
|
java.lang.String |
getResultVariableName()
Gets the Variable result name.
|
java.util.Iterator<java.lang.String> |
parameterNameIterator()
Returns an
java.util.Iterator of set parameter names. |
int |
paramSize()
Number of used parameters.
|
void |
removeParameter(java.lang.String vName)
Removes a parameter.
|
void |
setExecObject(UC4ObjectName execObject)
Sets the executable object name.
|
void |
setResultVariableName(java.lang.String varaResult)
Sets the Variable result name.
|
protected void |
store(com.uc4.util.XMLDocument doc,
org.w3c.dom.Element vara) |
protected DynamicExecVariable(com.uc4.util.XMLDocument doc)
doc
- the docprotected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element vara)
public UC4ObjectName getExecObject()
public void setExecObject(UC4ObjectName execObject)
execObject
- the new Executable objectpublic java.lang.String getResultVariableName()
public void setResultVariableName(java.lang.String varaResult)
varaResult
- the new Variable result namepublic int paramSize()
public void removeParameter(java.lang.String vName)
vName
- Key of the parameter that should be removedjava.lang.NullPointerException
- the null pointer exceptionpublic void clearParameters()
public java.lang.String addParameter(java.lang.String vName, java.lang.String value)
Dynamic Executable Variable.
.
The returns value indicates if the parameter was added successfully.vName
- name of the parametervalue
- value of the parametertrue
if the bind parameter was added successfully false
otherwisepublic java.lang.String getParameter(java.lang.String key)
key
- the key of an specified parameterpublic java.util.Iterator<java.lang.String> parameterNameIterator()
java.util.Iterator
of set parameter names.
Each parameter is stored as java.lang.String
.