Package com.uc4.api.objects
Class Variable
- java.lang.Object
-
- com.uc4.api.objects.UC4Object
-
- com.uc4.api.objects.Variable
-
public class Variable extends UC4Object
This class represents UC4 Variable objects.
-
-
Constructor Summary
Constructors Constructor Description Variable()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(java.lang.String key, java.lang.String value)Adds a new entry to this variable.voidadd(java.lang.String key, java.lang.String value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.String value5)Adds a new entry to this static variable.VariableAttributesattributes()Returns attributes of this variable.BackendVariablebackend()This method provides access to the backend panel.CompositeVariablecomposite()This method provides access to the Composite settings of this VARA object.DynamicExecVariabledynamicExecVariable()This method provides Dynamic Executable Variable Tab.FileListVariablefileList()This method provides access to the file list panel.java.lang.Stringget(java.lang.String validityKeyword)Returns the value for the given validity keyword.java.lang.String[]getRow(java.lang.String key)Returns all values of the row with the specified key as String array.Headerheader()Returns the header data of this object.booleanisExecutable()Returnstrueif this Object can be executed.java.util.Iterator<java.lang.String>keyIterator()Returns anjava.util.Iteratorof validity keywords.protected voidloadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)booleanremove(java.lang.String validityKeyword)Removes an entry from this variable.voidremoveAll()Removes all entries in this variable.voidsetDuplicateKeysAllowed(boolean allowed)Allow duplicate keys to be passed for a static variable object.intsize()Returns the number of entries in this variable.DynamicSQLVariablesql()This method provides access to the SQL settings of this VARA object.DynamicSQLVariableInternsqlIntern()This method provides access to the SQL (Automation Engine DB) settings of this VARA object.SecureSQLVariableInternsqlInternSecure()This method provides access to the Secure SQL (Automation Engine DB) settings of this VARA object.SecureSQLVariablesqlSecure()This method provides access to the Secure SQL settings of this VARA object.protected voidstoreContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)voidvalidate()Validates the object.-
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store
-
-
-
-
Method Detail
-
loadContent
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
-
sql
public DynamicSQLVariable sql()
This method provides access to the SQL settings of this VARA object.- Returns:
- Object which can be used to read/modify SQL settings of this Variable.
-
sqlIntern
public DynamicSQLVariableIntern sqlIntern()
This method provides access to the SQL (Automation Engine DB) settings of this VARA object.- Returns:
- Object which can be used to read/modify SQL statements
-
sqlSecure
public SecureSQLVariable sqlSecure()
This method provides access to the Secure SQL settings of this VARA object.- Returns:
- Object which can be used to read/modify Secure SQL settings of this Variable.
-
sqlInternSecure
public SecureSQLVariableIntern sqlInternSecure()
This method provides access to the Secure SQL (Automation Engine DB) settings of this VARA object.- Returns:
- Object which can be used to read/modify Secure SQL statements
-
dynamicExecVariable
public DynamicExecVariable dynamicExecVariable()
This method provides Dynamic Executable Variable Tab.- Returns:
- Object which can be used to read/modify Dynamic Executable Variable Tab
-
composite
public CompositeVariable composite()
This method provides access to the Composite settings of this VARA object.- Returns:
- Composite settings
-
fileList
public FileListVariable fileList()
This method provides access to the file list panel.- Returns:
- File list settings
-
backend
public BackendVariable backend()
This method provides access to the backend panel.- Returns:
- backend settings
-
header
public Header header()
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
keyIterator
public java.util.Iterator<java.lang.String> keyIterator()
Returns anjava.util.Iteratorof validity keywords. Each validity keyword is stored asjava.lang.String. The order of the returned validity keywords is undefined.- Returns:
- Iterator
-
add
public void add(java.lang.String key, java.lang.String value)Adds a new entry to this variable. AnIllegalArgumentExceptionis thrown ifkeyorvalueare not conforming to the current variable attributes.- Parameters:
key- Keyvalue- Value
-
add
public void add(java.lang.String key, java.lang.String value1, java.lang.String value2, java.lang.String value3, java.lang.String value4, java.lang.String value5)Adds a new entry to this static variable. AnIllegalArgumentExceptionis thrown ifkeyorvalueare not conforming to the current variable attributes.- Parameters:
key- Keyvalue1- Value for column 1value2- Value for column 2value3- Value for column 3value4- Value for column 4value5- Value for column 5
-
get
public java.lang.String get(java.lang.String validityKeyword)
Returns the value for the given validity keyword.- Parameters:
validityKeyword- validity keyword- Returns:
- value
-
getRow
public java.lang.String[] getRow(java.lang.String key)
Returns all values of the row with the specified key as String array.- Parameters:
key- Key, must be unique- Returns:
- Array of Strings containing the values
-
validate
public void validate() throws java.io.InvalidObjectExceptionDescription copied from class:UC4ObjectValidates the object. If the object is not valid anInvalidObjectExceptionis thrown.
-
remove
public boolean remove(java.lang.String validityKeyword)
Removes an entry from this variable. The returns value indicates if an entry with the given validity keyword was removed.- Parameters:
validityKeyword- validity keyword- Returns:
trueif the entry was removedfalseotherwise
-
attributes
public VariableAttributes attributes()
Returns attributes of this variable.- Returns:
- variable attributes
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
-
size
public int size()
Returns the number of entries in this variable.- Returns:
- number of entries
-
removeAll
public void removeAll()
Removes all entries in this variable.
-
isExecutable
public boolean isExecutable()
Description copied from class:UC4ObjectReturnstrueif this Object can be executed.- Specified by:
isExecutablein classUC4Object- Returns:
- true if the Object can be executed, false if not.
-
setDuplicateKeysAllowed
public void setDuplicateKeysAllowed(boolean allowed)
Allow duplicate keys to be passed for a static variable object. Duplicate keys are all replaced by the first one- Parameters:
allowed- true if duplicate keys should be allowed. Default is false
-
-