Package com.uc4.api.objects
Class DynamicExecVariable
- java.lang.Object
-
- com.uc4.api.objects.DynamicExecVariable
-
public class DynamicExecVariable extends java.lang.ObjectDynamic Executable Variable.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDynamicExecVariable(com.uc4.util.XMLDocument doc)Instantiates a new dynamic Executable variable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringaddParameter(java.lang.String vName, java.lang.String value)Adds a new parameter to theDynamic Executable Variable..voidclearParameters()Removes all Parameters.UC4ObjectNamegetExecObject()Gets the executable object name.java.lang.StringgetParameter(java.lang.String key)Gets the parameter from given key.java.lang.StringgetResultVariableName()Gets the Variable result name.java.util.Iterator<java.lang.String>parameterNameIterator()Returns anjava.util.Iteratorof set parameter names.intparamSize()Number of used parameters.voidremoveParameter(java.lang.String vName)Removes a parameter.voidsetExecObject(UC4ObjectName execObject)Sets the executable object name.voidsetResultVariableName(java.lang.String varaResult)Sets the Variable result name.protected voidstore(com.uc4.util.XMLDocument doc, org.w3c.dom.Element vara)
-
-
-
Method Detail
-
store
protected void store(com.uc4.util.XMLDocument doc, org.w3c.dom.Element vara)
-
getExecObject
public UC4ObjectName getExecObject()
Gets the executable object name.- Returns:
- the executable object
-
setExecObject
public void setExecObject(UC4ObjectName execObject)
Sets the executable object name.- Parameters:
execObject- the new Executable object
-
getResultVariableName
public java.lang.String getResultVariableName()
Gets the Variable result name.- Returns:
- the Variable result name
-
setResultVariableName
public void setResultVariableName(java.lang.String varaResult)
Sets the Variable result name.- Parameters:
varaResult- the new Variable result name
-
paramSize
public int paramSize()
Number of used parameters.- Returns:
- Number of used parameters
-
removeParameter
public void removeParameter(java.lang.String vName)
Removes a parameter.- Parameters:
vName- Key of the parameter that should be removed- Throws:
java.lang.NullPointerException- the null pointer exception
-
clearParameters
public void clearParameters()
Removes all Parameters.
-
addParameter
public java.lang.String addParameter(java.lang.String vName, java.lang.String value)Adds a new parameter to theDynamic Executable Variable.. The returns value indicates if the parameter was added successfully.- Parameters:
vName- name of the parametervalue- value of the parameter- Returns:
trueif the bind parameter was added successfullyfalseotherwise
-
getParameter
public java.lang.String getParameter(java.lang.String key)
Gets the parameter from given key.- Parameters:
key- the key of an specified parameter- Returns:
- the value of specified parameter
-
parameterNameIterator
public java.util.Iterator<java.lang.String> parameterNameIterator()
Returns anjava.util.Iteratorof set parameter names. Each parameter is stored asjava.lang.String.- Returns:
- Iterator Names of set parameters
-
-