|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.uhn.hl7v2.validation.impl.SizeRule
public class SizeRule
Checks that Primitive values conform to a certain size limit.
Constructor Summary | |
---|---|
SizeRule(int theMaxChars)
|
Method Summary | |
---|---|
java.lang.String |
correct(java.lang.String value)
Does nothing. |
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)
Tests the given string against the criteria defined by this rule -- returns true if it passes the test, false otherwise. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SizeRule(int theMaxChars)
theMaxChars
- the maximum number of characters this rule allows in a
primitive valueMethod 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)
PrimitiveTypeRule
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 |