ca.uhn.hl7v2.model
Class GenericComposite
java.lang.Object
ca.uhn.hl7v2.model.AbstractType
ca.uhn.hl7v2.model.AbstractComposite
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
|
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) |
GenericComposite
public GenericComposite(Message message)
- Creates a new instance of GenericComposite
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.