Package ca.uhn.hl7v2.validation.impl
Class TrimLeadingWhitespace
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleSupport<String>
ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
ca.uhn.hl7v2.validation.impl.TrimLeadingWhitespace
- All Implemented Interfaces:
PrimitiveTypeRule,Rule<String>,Serializable
Deprecated.
Performs no validation but removes leading whitespace in the correct() method.
- Author:
- Bryan Tripp, Christian Ohr
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Applies to rule to an object to be checkedDeprecated.Removes leading whitespace.Deprecated.Returns a text description of the rule.Methods inherited from class ca.uhn.hl7v2.validation.impl.AbstractPrimitiveTypeRule
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
-
TrimLeadingWhitespace
public TrimLeadingWhitespace()Deprecated.
-
-
Method Details
-
correct
Deprecated.Removes leading whitespace.- Specified by:
correctin interfacePrimitiveTypeRule- Overrides:
correctin classAbstractPrimitiveTypeRule- Parameters:
value- an original value to be corrected- Returns:
- a corrected version of the given value
- See Also:
-
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
-
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:
-
PrimitiveRuleBuilder.leftTrim()instead