Package com.uc4.api.objects
Class GenericConnection
java.lang.Object
com.uc4.api.objects.UC4Object
com.uc4.api.objects.GenericConnection
This class represents an Generic Connection Object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionRetrieves the value of a specific connection parameter.header()Returns the header data of this object.booleanReturnstrueif this Object can be executed.protected voidloadContent(com.uc4.util.XMLDocument doc, ConnectionAttributes session) This method provides access to the values of this Connection Object.voidSets a specific connection parameter.protected voidstoreContent(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) Methods inherited from class com.uc4.api.objects.UC4Object
docu, getAccess, getIdnr, getModCount, getName, getObjectClient, getType, isOldVersion, load, store, validate
-
Constructor Details
-
GenericConnection
public GenericConnection()
-
-
Method Details
-
header
Returns the header data of this object. This is the information of the header tab in the dialog client.- Returns:
- header
-
ocvValues
This method provides access to the values of this Connection Object. The returned object can be used to read, modify and add parameters.- Returns:
- Values
-
set
Sets a specific connection parameter.This updates the underlying OCV (Object CIT Values) panel with the provided key-value pair. If the value is null, a
NullPointerExceptionwill be thrown.- Parameters:
key- The name of the parameter to set.value- The value to assign to the parameter (must not be null).- Throws:
NullPointerException- if the provided value is null.
-
get
Retrieves the value of a specific connection parameter.If the key exists within the panel, its corresponding value is returned. If the key does not exist or the value is null, an empty string is returned.
- Parameters:
key- The name of the parameter to retrieve.- Returns:
- The value associated with the key, or an empty string if not found.
-
loadContent
-
storeContent
protected void storeContent(com.uc4.util.XMLDocument doc, Element objectElement, ConnectionAttributes sessionInfo) -
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.
-