Package ca.uhn.hl7v2.validation.impl
Class WithdrawnDatatypeRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<String>
ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
ca.uhn.hl7v2.validation.impl.SizeRule
ca.uhn.hl7v2.validation.impl.WithdrawnDatatypeRule
- All Implemented Interfaces:
PrimitiveTypeRule,Rule<String>,Serializable
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:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.Set the value of a system property to "true" to disable this rule globally. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Returns a text description of the rule.Methods inherited from class ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
correct, testMethods inherited from class ca.uhn.hl7v2.validation.impl.RuleSupport
failed, failed, failed, failed, failedWithValue, getErrorCode, getSectionReference, getSeverity, passed, result, result, setDescription, setErrorCode, setSectionReference, setSeverityMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ca.uhn.hl7v2.validation.Rule
getSectionReference
-
Field Details
-
PROP_DISABLE_RULE
Deprecated.Set the value of a system property to "true" to disable this rule globally.- See Also:
-
-
Constructor Details
-
WithdrawnDatatypeRule
public WithdrawnDatatypeRule()Deprecated.Constructor
-
-
Method Details
-
getDescription
Deprecated.Returns a text description of the rule. This description may be used as a message in exceptions generated if validation against the rule fails, or in a user interface for rule configuration.- Specified by:
getDescriptionin interfaceRule<String>- Overrides:
getDescriptionin classSizeRule- Returns:
- rule description
- See Also:
-
BuilderSupport.withdrawn()instead