ca.uhn.hl7v2.validation
Interface EncodingRule

All Superinterfaces:
Rule, java.io.Serializable
All Known Implementing Classes:
XMLSchemaRule

public interface EncodingRule
extends Rule

A validation rule that applies to encoded message strings. Rules that apply to message content are not included in this category (they are MessageRules and are evaluated against parsed Message object). EncodingRules are intended for criteria that are specific to the encoded form of a message, e.g. "no empty tags in an XML message".

Author:
Bryan Tripp

Method Summary
 ValidationException[] test(java.lang.String msg)
          Tests the given encoded message text against the criteria defined by this rule class.
 
Methods inherited from interface ca.uhn.hl7v2.validation.Rule
getDescription, getSectionReference
 

Method Detail

test

ValidationException[] test(java.lang.String msg)
Tests the given encoded message text against the criteria defined by this rule class.

Returns:
a list of exceptions indicating points at which the given message failed to validate (empty if validation succeeds; may not be a complete list as testing may be aborted after failure).


Copyright © 2001-2011 University Health Network. All Rights Reserved.