public final class HL7MessageValidator
extends java.lang.Object
| Constructor and Description |
|---|
HL7MessageValidator() |
| Modifier and Type | Method and Description |
|---|---|
MessageFactory |
getMessageFactory()
Retrieves Message Factory.
|
void |
setMessageFactory(MessageFactory objFactory)
Sets Message Factory.
|
boolean |
validate(IHL7Stream objIHL7Stream)
Validates the stream of HL7 message.
|
boolean |
validate(java.lang.String strFilePath)
Validates the HL7 message file.
|
public void setMessageFactory(MessageFactory objFactory)
objFactory - instance of MessageFactorypublic MessageFactory getMessageFactory()
public boolean validate(java.lang.String strFilePath)
throws java.io.IOException,
InvalidMessageException
strFilePath - String value of absolute path of HL7 message filejava.io.IOException - throws I/O Exception if parsing failedInvalidMessageException - throws Invalid Message Exception if validation failspublic boolean validate(IHL7Stream objIHL7Stream) throws java.io.IOException, InvalidMessageException
objIHL7Stream - Object of HL7Streamjava.io.IOException - throws I/O Exception if parsing failedInvalidMessageException - throws Invalid Message Exception if validation fails