public class Variable extends UC4Object
Constructor and Description |
---|
Variable() |
Modifier and Type | Method and 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()
Returns
true if this Object can be executed. |
java.util.Iterator<java.lang.String> |
keyIterator()
Returns an
java.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)
Stores the object specific data under the
objectElement element. |
void |
validate()
Validates the object.
|
docu, getAccess, getIdnr, getModCount, getName, getType, isOldVersion, load, store
protected void loadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes info)
public DynamicSQLVariable sql()
public DynamicSQLVariableIntern sqlIntern()
public SecureSQLVariable sqlSecure()
public SecureSQLVariableIntern sqlInternSecure()
public DynamicExecVariable dynamicExecVariable()
public CompositeVariable composite()
public FileListVariable fileList()
public BackendVariable backend()
public Header header()
public java.util.Iterator<java.lang.String> keyIterator()
java.util.Iterator
of validity keywords.
Each validity keyword is stored as java.lang.String
.
The order of the returned validity keywords is undefined.public void add(java.lang.String key, java.lang.String value)
IllegalArgumentException
is thrown if key
or
value
are not conforming to the current variable attributes.key
- Keyvalue
- Valuepublic 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)
IllegalArgumentException
is thrown if key
or
value
are not conforming to the current variable attributes.key
- Keyvalue1
- Value for column 1value2
- Value for column 2value3
- Value for column 3value4
- Value for column 4value5
- Value for column 5public java.lang.String get(java.lang.String validityKeyword)
validityKeyword
- validity keywordpublic java.lang.String[] getRow(java.lang.String key)
key
- Key, must be uniquepublic void validate() throws java.io.InvalidObjectException
UC4Object
InvalidObjectException
is thrown.public boolean remove(java.lang.String validityKeyword)
validityKeyword
- validity keywordtrue
if the entry was removed false
otherwisepublic VariableAttributes attributes()
protected void storeContent(com.uc4.util.XMLDocument doc, org.w3c.dom.Element objectElement, ConnectionAttributes sessionInfo)
UC4Object
objectElement
element.doc
- XML Document, used to create subelementsobjectElement
- the newly created elements are children of the objectElement
elementsessionInfo
- Information about the current sessionpublic int size()
public void removeAll()
public boolean isExecutable()
UC4Object
true
if this Object can be executed.isExecutable
in class UC4Object
public void setDuplicateKeysAllowed(boolean allowed)
allowed
- true if duplicate keys should be allowed. Default is false