ca.uhn.hl7v2.model
Class GenericComposite

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractType
      extended by ca.uhn.hl7v2.model.GenericComposite
All Implemented Interfaces:
Composite, Type, java.io.Serializable
Direct Known Subclasses:
CM

public class GenericComposite
extends AbstractType
implements Composite

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:
Serialized Form

Constructor Summary
GenericComposite(Message message)
          Creates a new instance of GenericComposite
 
Method Summary
 void clear()
          Clears all data from this type
 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.
 Type[] getComponents()
          Returns an array containing the components of this field.
 java.lang.String getName()
          Returns the name of the type (used in XML encoding and profile checking)
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, parse
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.uhn.hl7v2.model.Type
encode, getExtraComponents, getMessage, parse
 

Constructor Detail

GenericComposite

public GenericComposite(Message message)
Creates a new instance of GenericComposite

Method Detail

getComponent

public Type getComponent(int number)
                  throws DataTypeException
Returns the single component of this composite at the specified position (starting at 0) - Creates it (and any nonexistent components before it) if necessary.

Specified by:
getComponent in interface Composite
Throws:
DataTypeException

getComponents

public Type[] getComponents()
Returns an array containing the components of this field.

Specified by:
getComponents in interface Composite

getName

public java.lang.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

clear

public void clear()
Clears all data from this type

Specified by:
clear in interface Type
Overrides:
clear in class AbstractType


Copyright © 2001-2011 University Health Network. All Rights Reserved.