Class OCVPanel

java.lang.Object
com.uc4.api.objects.OCVPanel
All Implemented Interfaces:
Iterable<OCVPanel.CITValue>

public class OCVPanel extends Object implements Iterable<OCVPanel.CITValue>
This class provides access to the values of Connection Objects and Rapid Automation Jobs.
  • Constructor Details

    • OCVPanel

      public OCVPanel(com.uc4.util.XMLDocument doc, Element citPanel, ConnectionAttributes session)
      Internal use only.
      Parameters:
      doc - XML document
      citPanel - Element of RA values
      session - Session info
  • Method Details

    • get

      public String get(String name)
      Gets a value from by its unique name.
      Parameters:
      name - xmlName
      Returns:
      value or null if not found
    • getInt

      public int getInt(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(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 Iterator<OCVPanel.CITValue> iterator()
      Returns an iterator which can be used ot read all values.
      Specified by:
      iterator in interface 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(String xmlName, String value)
      Modifies the value of an xmlName.
      Parameters:
      xmlName - Name
      value - New value
      Returns:
      true if successful, false otherwise
    • setValue

      public void setValue(String xmlName, String value, boolean enc, boolean con)
      Modifies or adds a new value to this OCV panel.
      Parameters:
      xmlName - Name
      value - Value
      enc - 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