Package ca.uhn.hl7v2.validation.impl
Class SizeRule
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<String>
ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
ca.uhn.hl7v2.validation.impl.SizeRule
- All Implemented Interfaces:
PrimitiveTypeRule,Rule<String>,Serializable
- Direct Known Subclasses:
WithdrawnDatatypeRule
Deprecated.
Checks that Primitive values conform to a certain size limit.
- Version:
- $Revision: 1.1 $ updated on $Date: 2007-02-19 02:24:40 $ by $Author: jamesagnew $
- Author:
- Bryan Tripp
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Applies to rule to an object to be checkedDeprecated.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
-
Constructor Details
-
SizeRule
Deprecated.- Parameters:
theMaxChars- the maximum number of characters this rule allows in a primitive value
-
-
Method Details
-
apply
Deprecated.Description copied from interface:RuleApplies to rule to an object to be checked- Parameters:
value- object to be checked- Returns:
- an (potentially empty) array of ValidationExceptions
- See Also:
-
getDescription
Deprecated.Description copied from interface:RuleReturns 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 classRuleSupport<String>- Returns:
- rule description
- See Also:
-
BuilderSupport.maxLength(int)instead