|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectca.uhn.hl7v2.validation.impl.XMLSchemaRule
public class XMLSchemaRule
Validate hl7 version 2 messages encoded according to the HL7 XML Encoding Syntax against xml schemas provided by hl7.org
| Constructor Summary | |
|---|---|
XMLSchemaRule()
Creates a new instance of XMLSchemaValidator |
|
| Method Summary | |
|---|---|
String |
getDescription()
Returns a text description of the rule. |
String |
getSectionReference()
A string indicating the section of the HL7 standard from which this rule is derived (if applicable). |
ValidationException[] |
test(String msg)
Test/validate a given xml document against a hl7 v2.xml schema. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XMLSchemaRule()
| Method Detail |
|---|
public ValidationException[] test(String msg)
Test/validate a given xml document against a hl7 v2.xml schema.
Before the schema is applied, the namespace is verified because otherwise schema validation fails anyway.
If a schema file is specified in the xml message and the file can be located on the disk this one is used. If no schema has been specified, or the file can't be located, a system property ca.uhn.hl7v2.validation.xmlschemavalidator.schemalocation. + version can be used to assign a default schema location.
test in interface EncodingRulemsg - the xml message (as string) to be validated.
public String getDescription()
Rule
getDescription in interface RuleRule.getDescription()public String getSectionReference()
Rule
getSectionReference in interface RuleRule.getSectionReference()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||