ca.uhn.hl7v2.model
Class GenericMessage

java.lang.Object
  extended by ca.uhn.hl7v2.model.AbstractGroup
      extended by ca.uhn.hl7v2.model.AbstractMessage
          extended by ca.uhn.hl7v2.model.GenericMessage
All Implemented Interfaces:
Group, Message, Structure, java.io.Serializable
Direct Known Subclasses:
GenericMessage.UnknownVersion, GenericMessage.V21, GenericMessage.V22, GenericMessage.V23, GenericMessage.V231, GenericMessage.V24, GenericMessage.V25, GenericMessage.V251, GenericMessage.V26

public abstract class GenericMessage
extends AbstractMessage

A generic HL7 message, meant for parsing message with unrecognized structures into a flat list of segments.

Author:
Bryan Tripp
See Also:
Serialized Form

Nested Class Summary
static class GenericMessage.UnknownVersion
           
static class GenericMessage.V21
           
static class GenericMessage.V22
           
static class GenericMessage.V23
           
static class GenericMessage.V231
           
static class GenericMessage.V24
           
static class GenericMessage.V25
           
static class GenericMessage.V251
           
static class GenericMessage.V26
           
 
Constructor Summary
GenericMessage(ModelClassFactory factory)
          Creates a new instance of GenericMessage.
 
Method Summary
static java.lang.Class getGenericMessageClass(java.lang.String version)
          Returns a subclass of GenericMessage corresponding to a certain version.
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractMessage
encode, generateACK, generateACK, getEncodingCharactersValue, getFieldSeparatorValue, getMessage, getParser, getValidationContext, getVersion, parse, setParser, setValidationContext
 
Methods inherited from class ca.uhn.hl7v2.model.AbstractGroup
add, add, addNonstandardSegment, addNonstandardSegment, clear, currentReps, get, get, getAll, getClass, getModelClassFactory, getName, getNames, getParent, insertRepetition, insertRepetition, isRepeating, isRequired, removeRepetition
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface ca.uhn.hl7v2.model.Group
addNonstandardSegment, addNonstandardSegment, get, get, getAll, getClass, getNames, isRepeating, isRequired
 
Methods inherited from interface ca.uhn.hl7v2.model.Structure
getName, getParent
 

Constructor Detail

GenericMessage

public GenericMessage(ModelClassFactory factory)
Creates a new instance of GenericMessage.

Parameters:
factory - class factory for contained structures
Method Detail

getGenericMessageClass

public static java.lang.Class getGenericMessageClass(java.lang.String version)
Returns a subclass of GenericMessage corresponding to a certain version. This is needed so that version-specific segments can be added as the message is parsed.



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