Package ca.uhn.hl7v2.model
Class GenericMessage
java.lang.Object
ca.uhn.hl7v2.model.AbstractStructure
ca.uhn.hl7v2.model.AbstractGroup
ca.uhn.hl7v2.model.AbstractMessage
ca.uhn.hl7v2.model.GenericMessage
- All Implemented Interfaces:
Group,Message,Structure,Visitable,Serializable
- Direct Known Subclasses:
GenericMessage.UnknownVersion,GenericMessage.V21,GenericMessage.V22,GenericMessage.V23,GenericMessage.V231,GenericMessage.V24,GenericMessage.V25,GenericMessage.V251,GenericMessage.V26,GenericMessage.V27,GenericMessage.V271,GenericMessage.V28,GenericMessage.V281
A generic HL7 message, meant for parsing message with unrecognized structures
into a flat list of segments.
- Author:
- Bryan Tripp, Christian Ohr
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionGenericMessage(ModelClassFactory factory) Creates a new instance of GenericMessage. -
Method Summary
Modifier and TypeMethodDescriptiongetGenericMessageClass(String version) Returns a subclass of GenericMessage corresponding to a certain version.Methods inherited from class ca.uhn.hl7v2.model.AbstractMessage
accept, copy, encode, fillResponseHeader, generateACK, generateACK, generateACK, getEncodingCharactersValue, getFieldSeparatorValue, getMessage, getParent, getParser, getValidationContext, getVersion, initQuickstart, parse, printStructure, printStructure, setParser, toStringMethods inherited from class ca.uhn.hl7v2.model.AbstractGroup
add, add, add, addNonstandardSegment, addNonstandardSegment, clear, currentReps, get, get, getAll, getAllAsList, getClass, getFieldNumForName, getModelClassFactory, getName, getNames, getNonStandardNames, getReps, getTyped, getTyped, insert, insert, insertRepetition, insertRepetition, isChoiceElement, isEmpty, isGroup, isRepeating, isRequired, provideLocation, removeRepetition, tryToInstantiateStructure, visitNestedStructuresMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.model.Group
addNonstandardSegment, addNonstandardSegment, get, get, getAll, getClass, getNames, isChoiceElement, isGroup, isRepeating, isRequiredMethods inherited from interface ca.uhn.hl7v2.model.Visitable
isEmpty, provideLocation
-
Constructor Details
-
GenericMessage
Creates a new instance of GenericMessage.- Parameters:
factory- class factory for contained structures
-
-
Method Details
-
getGenericMessageClass
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.- Parameters:
version- the HL7 version- Returns:
- the class of the generic message
-