Package COM.TIBCO.hawk.talon
Class CompositeDataDescriptor
java.lang.Object
COM.TIBCO.hawk.talon.DataDescriptor
COM.TIBCO.hawk.talon.CompositeDataDescriptor
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
TabularDataDescriptor
This subclass of DataDescriptor is used to describe objects of type CompositeData.
The value returned by its getElementDescriptors()
method describes all the elements in the composite.
Default value, legal value choices, and value choices are not supported for CompositeDataDescriptor.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCompositeDataDescriptor(String name, String desc, DataDescriptor[] elementDescriptors) Constructs a CompositeDataDescriptor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanCompares this object against the specified object.Returns the descriptors of the aggregated elementsbooleanReturns true if this descriptor describes an open data type.toString()Returns a string representation of this descriptor.Methods inherited from class COM.TIBCO.hawk.talon.DataDescriptor
getDefault, getDescription, getLegalValueChoices, getName, getType, getValueChoices
-
Constructor Details
-
CompositeDataDescriptor
Constructs a CompositeDataDescriptor.Note that a
typeparameter is not required as in DataDescriptor, it is implicitly the CompositeData type.- Parameters:
name- The name of the data parameter being described. It must be a non-null, non-empty alpha numeric string.desc- A description of the parameter being described.elementDescriptors- An array of descriptors describing the components of the CompositeData. It must contain DataDescriptor objects that describe only open data types. All elements must have unique names. It can not be null or empty array. The array can not contain null elements.- See Also:
-
-
Method Details
-
getElementDescriptors
Returns the descriptors of the aggregated elements -
isOpenData
public boolean isOpenData()Returns true if this descriptor describes an open data type.This overridden method will always return true for this subclass of
DataDescriptorbecause the constructor insures that only the open data typeCompositeDatamay be described.- Overrides:
isOpenDatain classDataDescriptor- Returns:
- True if this descriptor describes an open data type.
- See Also:
-
equals
Compares this object against the specified object.Two descriptors are equal if their name, type, description, and DataDescriptor elements are equal.
- Overrides:
equalsin classDataDescriptor- Returns:
- true if the two objects are equal.
-
toString
Returns a string representation of this descriptor.- Overrides:
toStringin classDataDescriptor
-