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 void
add(java.lang.String key, java.lang.String value)
Adds a new entry to this variable.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.VariableAttributes
attributes()
Returns attributes of this variable.BackendVariable
backend()
This method provides access to the backend panel.CompositeVariable
composite()
This method provides access to the Composite settings of this VARA object.DynamicExecVariable
dynamicExecVariable()
This method provides Dynamic Executable Variable Tab.FileListVariable
fileList()
This method provides access to the file list panel.java.lang.String
get(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.Header
header()
Returns the header data of this object.boolean
isExecutable()
Returnstrue
if this Object can be executed.java.util.Iterator<java.lang.String>
keyIterator()
Returns anjava.util.Iterator
of validity keywords.protected void
loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
boolean
remove(java.lang.String validityKeyword)
Removes an entry from this variable.void
removeAll()
Removes all entries in this variable.void
setDuplicateKeysAllowed(boolean allowed)
Allow duplicate keys to be passed for a static variable object.int
size()
Returns the number of entries in this variable.DynamicSQLVariable
sql()
This method provides access to the SQL settings of this VARA object.DynamicSQLVariableIntern
sqlIntern()
This method provides access to the SQL (Automation Engine DB) settings of this VARA object.SecureSQLVariableIntern
sqlInternSecure()
This method provides access to the Secure SQL (Automation Engine DB) settings of this VARA object.SecureSQLVariable
sqlSecure()
This method provides access to the Secure SQL settings of this VARA object.protected void
storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
void
validate()
Validates the object.-
Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, 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.Iterator
of 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. AnIllegalArgumentException
is thrown ifkey
orvalue
are 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. AnIllegalArgumentException
is thrown ifkey
orvalue
are 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.InvalidObjectException
Description copied from class:UC4Object
Validates the object. If the object is not valid anInvalidObjectException
is 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:
true
if the entry was removedfalse
otherwise
-
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:UC4Object
Returnstrue
if this Object can be executed.- Specified by:
isExecutable
in 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
-
-