|
||||||||||
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 | |
---|---|
java.lang.String |
getDescription()
Returns a text description of the rule. |
java.lang.String |
getSectionReference()
A string indicating the section of the HL7 standard from which this rule is derived (if applicable). |
ValidationException[] |
test(java.lang.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(java.lang.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 EncodingRule
msg
- the xml message (as string) to be validated.
public java.lang.String getDescription()
Rule
getDescription
in interface Rule
Rule.getDescription()
public java.lang.String getSectionReference()
Rule
getSectionReference
in interface Rule
Rule.getSectionReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |