ca.uhn.hl7v2.model
Class AbstractType

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

public abstract class AbstractType
extends java.lang.Object
implements Type

An abstract Type that provides a default implementation of getName().

Author:
Bryan Tripp
See Also:
Serialized Form

Constructor Summary
AbstractType(Message message)
          Creates a new instance of AbstractType
 
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()
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractType

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

Parameters:
message - message to which this type belongs
Method Detail

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

getExtraComponents

public ExtraComponents getExtraComponents()
Description copied from interface: Type
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.

Specified by:
getExtraComponents in interface Type
See Also:
Type.getExtraComponents()

getMessage

public Message getMessage()
Specified by:
getMessage in interface Type
Returns:
the message to which this Type belongs

parse

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

Specified by:
parse in interface Type
Throws:
HL7Exception

encode

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

Specified by:
encode in interface Type
Throws:
HL7Exception

clear

public void clear()
Clears all data from this type

Specified by:
clear in interface Type


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