Class DataElement

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

public class DataElement extends Object implements Serializable
Used to represent data objects in name-value pairs.
See Also:
  • Constructor Details

    • DataElement

      public DataElement(String name, Object value)
      Parameters:
      name - the name of the element. May not be null or empty string.
  • Method Details

    • getName

      public String getName()
      Returns the name of this element.
      Returns:
      the name of this element
    • getValue

      public Object getValue()
      Returns the value of this element.
      Returns:
      the value of this element
    • equals

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

      Two DataElement objects are equal if they have the same name and and equal value parameters.

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

      public String toString()
      Returns a string representation of this element.
      Overrides:
      toString in class Object
      Returns:
      a string representation of this element.
    • toXML

      public String toXML()
      Returns a XML representation of this element.
      Returns:
      a XML representation of this element.