public interface ModelClassFactory extends Serializable
| Modifier and Type | Method and Description |
|---|---|
Class<? extends Group> |
getGroupClass(String theName,
String theVersion) |
Class<? extends Message> |
getMessageClass(String theName,
String theVersion,
boolean isExplicit) |
Class<? extends Message> |
getMessageClassInASpecificPackage(String theName,
String theVersion,
boolean isExplicit,
String packageName)
Retrieves and instantiates a message class by looking in a specific java package for the
message type.
|
Class<? extends Segment> |
getSegmentClass(String theName,
String theVersion) |
Class<? extends Type> |
getTypeClass(String theName,
String theVersion) |
Class<? extends Message> getMessageClass(String theName, String theVersion, boolean isExplicit) throws HL7Exception
theName - name of messagetheVersion - HL7 versionisExplicit - true if the structure was specified explicitly in MSH-9-3, false if it
was inferred from MSH-9-1 and MSH-9-2. If false, a lookup may be performed to find
an alternate structure corresponding to that message type and event.HL7Exception - if the version if not recognized or an appropriate class can not be foundClass<? extends Message> getMessageClassInASpecificPackage(String theName, String theVersion, boolean isExplicit, String packageName) throws HL7Exception
theName - The message structure type (e.g. "ADT_A01")theVersion - The HL7 version (e.g. "2.3.1")isExplicit - If false, the message structure is looked up using Parser.getMessageStructureForEvent(String, String) and converted to the appropriate structure type. For example, "ADT_A04" would be converted to "ADT_A01" because the A04 trigger uses the A01 message structure according to HL7.packageName - The package name to use. Note that if the message type can't be found in this package, HAPI will return the standard type returned by getMessageClass(String, String, boolean)HL7ExceptionClass<? extends Group> getGroupClass(String theName, String theVersion) throws HL7Exception
theName - name of grouptheVersion - HL7 versionHL7Exception - if the version if not recognized or an appropriate class can not be foundClass<? extends Segment> getSegmentClass(String theName, String theVersion) throws HL7Exception
theName - name of segmenttheVersion - HL7 versionHL7Exception - if the version if not recognized or an appropriate class can not be foundClass<? extends Type> getTypeClass(String theName, String theVersion) throws HL7Exception
theName - name of typetheVersion - HL7 versionHL7Exception - if the version if not recognized or an appropriate class can not be foundCopyright © 2001-2012 University Health Network. All Rights Reserved.