ca.uhn.hl7v2.model
Class GenericComposite

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractType
      extended by ca.uhn.hl7v2.model.AbstractComposite
          extended by ca.uhn.hl7v2.model.GenericComposite
All Implemented Interfaces:
Composite, Type, 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:
Serialized Form

Field Summary
 
Fields inherited from class ca.uhn.hl7v2.model.AbstractComposite
log
 
Constructor Summary
GenericComposite(Message message)
          Creates a new instance of GenericComposite
 
Method Summary
 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.
 String getName()
          Returns the name of the type (used in XML encoding and profile checking)
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractComposite
clear, getTyped
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractType
encode, getExtraComponents, getMessage, parse, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, 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.

Throws:
DataTypeException

getComponents

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


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


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