|
||||||||||
| 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 | |
|---|---|
String |
correct(String value)
Does nothing. |
String |
getDescription()
Returns a text description of the rule. |
String |
getSectionReference()
A string indicating the section of the HL7 standard from which this rule is derived (if applicable). |
boolean |
test(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 value| Method Detail |
|---|
public String correct(String value)
correct in interface PrimitiveTypeRulevalue - an original value to be corrected
PrimitiveTypeRule.correct(java.lang.String)public boolean test(String value)
PrimitiveTypeRule
test in interface PrimitiveTypeRulePrimitiveTypeRule.test(java.lang.String)public String getDescription()
Rule
getDescription in interface RuleRule.getDescription()public String getSectionReference()
Rule
getSectionReference in interface RuleRule.getSectionReference()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||