Class WithdrawnDatatypeRule

All Implemented Interfaces:
PrimitiveTypeRule, Rule<String>, Serializable

public class WithdrawnDatatypeRule extends SizeRule
Deprecated.

Validation Rule which will not accept any content (i.e. length must be 0).

This class is expected to be used for withdrawn fields/components, and will provide a failure description indicating that the type is withdrawn.

If you wish to disable this rule globally, invoke the following code:

System.setProperty(ca.uhn.hl7v2.validation.impl.WithdrawnDatatypeRule.PROP_DISABLE_RULE, "true");

Note that this property is only checked the first time the class is loaded (i.e. not at runtime). To disable for an individual parser at runtime, call

parser.setValidationContext(new NoValidation());
See Also: