ca.uhn.hl7v2.model
Interface Type

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
Composite, Primitive
All Known Implementing Classes:
AbstractPrimitive, AbstractType, CM, DT, DT, DT, DT, DT, DT, DT, DT, DT, DTM, DTM, DTM, GenericComposite, GenericPrimitive, ID, ID, ID, ID, ID, ID, ID, ID, ID, IS, IS, IS, IS, IS, IS, IS, IS, NULLDT, NULLDT, NULLDT, TM, TM, TM, TM, TM, TM, TM, TM, TM, TS, TSComponentOne, TSComponentOne, TSComponentOne, TSComponentOne, TSComponentOne, Varies

public interface Type
extends java.io.Serializable

An HL7 datatype. Datatypes normally implement either Composite or Primitive.

Author:
Bryan Tripp (bryan_tripp@sourceforge.net)

Method Summary
 void clear()
          Clears all data from this type
 java.lang.String encode()
          Encodes this message using the parser returned by #getParser()
 ExtraComponents getExtraComponents()
          Returns an object containing any extra (non-standard) components that have been added to this type at run-time.
 Message getMessage()
           
 java.lang.String getName()
          Returns the name of the type (used in XML encoding and profile checking)
 void parse(java.lang.String string)
          Parses the string into this message using the parser returned by #getParser()
 

Method Detail

getName

java.lang.String getName()
Returns the name of the type (used in XML encoding and profile checking)


getExtraComponents

ExtraComponents getExtraComponents()
Returns an object containing any extra (non-standard) components that have been added to this type at run-time. This object can also be used to add components.


getMessage

Message getMessage()
Returns:
the message to which this Type belongs

parse

void parse(java.lang.String string)
           throws HL7Exception
Parses the string into this message using the parser returned by #getParser()

Throws:
HL7Exception

encode

java.lang.String encode()
                        throws HL7Exception
Encodes this message using the parser returned by #getParser()

Throws:
HL7Exception

clear

void clear()
Clears all data from this type



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