Class CompositeData

java.lang.Object
COM.TIBCO.hawk.talon.CompositeData
All Implemented Interfaces:
Serializable

public class CompositeData extends Object implements Serializable
An open data type used to build aggregates.
See Also:
  • Constructor Details

    • CompositeData

      public CompositeData(DataElement[] data)
      Constructs a CompositeData from an array of DataElement objects.
      Parameters:
      data - An array of DataElement objects. May not be null or empty array, must have at least one element. The array may not contain null elements. All DataElement object must have unique names. All DataElement values must be of an open data type (as identified by the OpenData interface), or null.
      Throws:
      IllegalArgumentException - if the parameter conditions are violated.
      See Also:
  • Method Details

    • getDataElements

      public DataElement[] getDataElements()
      Returns an array containing the same DataElement objects, but not necessarily in the same order, used to construct this object.
      Returns:
      all data elements of the CompositeData object
    • getValue

      public Object getValue(String name)
      Returns the value of the named element.
      Returns:
      The value of the named element. Null if named element has a null value or if the named element is not found.
    • toString

      public String toString()
      Overrides:
      toString in class Object
      Returns:
      a string representation of the composite data object
    • toXML

      public String toXML()
      Returns:
      a XML representation of the composite data object
    • equals

      public boolean equals(Object obj)
      Compares this object against the specified object.

      Two CompositeData objects are equal if they have the same name-value pairs represented by their aggregate DataElement objects. The order in which DataElement objects were supplied during construction does not affect equality.

      Overrides:
      equals in class Object
      Returns:
      true if the two objects are equal.