Package com.uc4.api.objects
Class OCVPanel
- java.lang.Object
-
- com.uc4.api.objects.OCVPanel
-
- All Implemented Interfaces:
java.lang.Iterable<OCVPanel.CITValue>
public class OCVPanel extends java.lang.Object implements java.lang.Iterable<OCVPanel.CITValue>
This class provides access to the values of Connection Objects and Rapid Automation Jobs.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOCVPanel.CITValueThis class represents a single row in this panel.
-
Constructor Summary
Constructors Constructor Description OCVPanel(com.uc4.util.XMLDocument doc, org.w3c.dom.Element citPanel, ConnectionAttributes session)Internal use only.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(OCVPanel.CITValue value)Adds a new value to this panel.booleanchangeValue(java.lang.String xmlName, java.lang.String value)Modifies the value of an xmlName.voidclear()Removes all values from this connection object.OCVPanelcopy()Creates a deep copy of this objectjava.lang.Stringget(java.lang.String name)Gets a value from by its unique name.intgetInt(java.lang.String name)Gets a value by its name and converts the result to an integer.java.util.Iterator<OCVPanel.CITValue>iterator()Returns an iterator which can be used ot read all values.booleanremove(java.lang.String name)Removes a value from this OCV Panel instance.voidsetValue(java.lang.String xmlName, java.lang.String value, boolean enc, boolean con)Modifies or adds a new value to this OCV panel.intsize()
-
-
-
Constructor Detail
-
OCVPanel
public OCVPanel(com.uc4.util.XMLDocument doc, org.w3c.dom.Element citPanel, ConnectionAttributes session)Internal use only.- Parameters:
doc- XML documentcitPanel- Element of RA valuessession- Session info
-
-
Method Detail
-
get
public java.lang.String get(java.lang.String name)
Gets a value from by its unique name.- Parameters:
name- xmlName- Returns:
- value or null if not found
-
getInt
public int getInt(java.lang.String name)
Gets a value by its name and converts the result to an integer.- Parameters:
name- xmlName of the parameter- Returns:
- int (0 if not found, -1 in case of a NumberFormatException)
-
remove
public boolean remove(java.lang.String name)
Removes a value from this OCV Panel instance.- Parameters:
name- XML name- Returns:
- true if the value has been removed, false otherwise
-
iterator
public java.util.Iterator<OCVPanel.CITValue> iterator()
Returns an iterator which can be used ot read all values.- Specified by:
iteratorin interfacejava.lang.Iterable<OCVPanel.CITValue>- Returns:
- Iterator over CITValue
-
clear
public void clear()
Removes all values from this connection object.
-
add
public void add(OCVPanel.CITValue value)
Adds a new value to this panel.- Parameters:
value- CITValue
-
changeValue
public boolean changeValue(java.lang.String xmlName, java.lang.String value)Modifies the value of an xmlName.- Parameters:
xmlName- Namevalue- New value- Returns:
- true if successful, false otherwise
-
setValue
public void setValue(java.lang.String xmlName, java.lang.String value, boolean enc, boolean con)Modifies or adds a new value to this OCV panel.- Parameters:
xmlName- Namevalue- Valueenc- Encryption?con- Connection Object
-
size
public int size()
- Returns:
- Number of entries
-
copy
public OCVPanel copy()
Creates a deep copy of this object- Returns:
- A copy of this object
-
-