public class CompositeData
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
CompositeData(DataElement[] data)
Constructs a CompositeData from an array of DataElement objects.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj)
Compares this object against the specified object.
|
DataElement[] |
getDataElements()
Returns an array containing the same DataElement objects,
but not necessarily in the same order, used to construct
this object.
|
java.lang.Object |
getValue(java.lang.String name)
Returns the value of the named element.
|
java.lang.String |
toString() |
java.lang.String |
toXML() |
public CompositeData(DataElement[] data)
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.java.lang.IllegalArgumentException
- if the parameter conditions are violated.public DataElement[] getDataElements()
public java.lang.Object getValue(java.lang.String name)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toXML()
public boolean equals(java.lang.Object obj)
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.
equals
in class java.lang.Object
Copyright © 2000-2019 TIBCO Inc. All Rights Reserved.