ca.uhn.hl7v2.model
Interface Composite

All Superinterfaces:
java.io.Serializable, Type
All Known Implementing Classes:
CM, GenericComposite

public interface Composite
extends Type

Represents the category of HL7 data types that contain more than one component (e.g. CE). Implementing classes (i.e. composite data types) should initialize their components either when they are initialized or when they are first accessed. Only leaf values (values of primitives) should ever be returned as null.

Author:
Bryan Tripp (bryan_tripp@sourceforge.net)

Method Summary
 Type getComponent(int number)
          Returns the single component of this composite at the specified position (starting at 0).
 Type[] getComponents()
          Returns an array containing the components of this field.
 
Methods inherited from interface ca.uhn.hl7v2.model.Type
clear, encode, getExtraComponents, getMessage, getName, parse
 

Method Detail

getComponents

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


getComponent

Type getComponent(int number)
                  throws DataTypeException
Returns the single component of this composite at the specified position (starting at 0).

Throws:
DataTypeException


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