|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.validation.impl.TrimLeadingWhitespace
public class TrimLeadingWhitespace
Performs no validation but removes leading whitespace in the correct() method.
Constructor Summary | |
---|---|
TrimLeadingWhitespace()
|
Method Summary | |
---|---|
java.lang.String |
correct(java.lang.String value)
Removes leading whitespace. |
java.lang.String |
getDescription()
Returns a text description of the rule. |
java.lang.String |
getSectionReference()
A string indicating the section of the HL7 standard from which this rule is derived (if applicable). |
boolean |
test(java.lang.String value)
Returns true. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrimLeadingWhitespace()
Method Detail |
---|
public java.lang.String correct(java.lang.String value)
correct
in interface PrimitiveTypeRule
value
- an original value to be corrected
PrimitiveTypeRule.correct(java.lang.String)
public boolean test(java.lang.String value)
test
in interface PrimitiveTypeRule
PrimitiveTypeRule.test(java.lang.String)
public java.lang.String getDescription()
Rule
getDescription
in interface Rule
Rule.getDescription()
public java.lang.String getSectionReference()
Rule
getSectionReference
in interface Rule
Rule.getSectionReference()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |