ca.uhn.hl7v2.validation.impl
Class ValidationContextFactory
java.lang.Object
ca.uhn.hl7v2.validation.impl.ValidationContextFactory
public class ValidationContextFactory
- extends java.lang.Object
Source of ValidationContext
.
The ValidationContext
returned by getContext()
is determined by the system property "ca.uhn.hl7v2.validation.context_class".
This factory defines two inner classes that can be used: DefaultValidation
and NoValidation. You can also create your own context, setting whatever rules
you want in its constructor, and reference it instead (it must have a zero-arg
constructor). If this property is not set, DefaultValidation is used.
Also note that the contexts provided here extend ValidationContextImpl
,
so rule bindings can be added or removed programmatically from the starting set.
- Version:
- $Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:40 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONTEXT_PROPERTY
public static final java.lang.String CONTEXT_PROPERTY
- See Also:
- Constant Field Values
ValidationContextFactory
public ValidationContextFactory()
getContext
public static ValidationContext getContext()
throws ValidationException
- Returns a singleton
ValidationContext
, creating it if necessary.
- Returns:
ValidationContext
- Throws:
ValidationException
Copyright © 2001-2011 University Health Network. All Rights Reserved.