Class DataObject

java.lang.Object
com.aquima.interactions.communication.data.DataValue
com.aquima.interactions.communication.data.DataObject
All Implemented Interfaces:
Serializable

public class DataObject extends DataValue
Represents an object in the data structure.
Since:
9.3
Author:
A.Pragt
See Also:
  • Constructor Details

    • DataObject

      public DataObject(DataValueObjectType type)
      Constructs a DataObject.
      Parameters:
      type - The type of the object, not null.
  • Method Details

    • getMemberNames

      public String[] getMemberNames()
      Returns the names of the members.
      Returns:
      The names, never null.
    • getValue

      public DataValue getValue(String memberName)
      Returns the value of a member.
      Parameters:
      memberName - The name of the member, not null.
      Returns:
      The value of the member, or null if not set.
    • containsMember

      public boolean containsMember(String memberName)
      Indicator of member existence.
      Parameters:
      memberName - The name of the property, not null.
      Returns:
      true when a member matching the name exists, otherwise false.
    • setValue

      public void setValue(String memberName, DataValue value)
      Sets the value of a member.
      Parameters:
      memberName - The name of the member to set, not null.
      value - The value of the member, may be null.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class DataValue
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class DataValue
    • toString

      public String toString()
      Overrides:
      toString in class Object