Class GenericComposite

All Implemented Interfaces:
Composite, Type, Visitable, Serializable
Direct Known Subclasses:
CM

public class GenericComposite extends AbstractComposite
An unspecified Composite datatype that has an undefined number of components, each of which is a Varies. This is used to store Varies data, when the data type is unknown. It is also used to store unrecognized message constituents.
Author:
Bryan Tripp
See Also:
  • Constructor Details

    • GenericComposite

      public GenericComposite(Message message)
      Creates a generic composite
      Parameters:
      message - message this object is linked to
  • Method Details

    • getComponent

      public Type getComponent(int number)
      Returns the single component of this composite at the specified position (starting at 0) - Creates it (and any nonexistent components before it) if necessary.
      Parameters:
      number - index of the component to be retrieved (zero-based)
      Returns:
      component at this index
    • getComponents

      public Type[] getComponents()
      Returns an array containing the components of this field.
      Returns:
      array of components of this composite type
    • getName

      public String getName()
      Returns the name of the type (used in XML encoding and profile checking)
      Specified by:
      getName in interface Type
      Overrides:
      getName in class AbstractType
      Returns:
      the name of the type