public class SizeRule extends Object implements PrimitiveTypeRule
| Constructor and Description |
|---|
SizeRule(int theMaxChars) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SizeRule(int theMaxChars)
theMaxChars - the maximum number of characters this rule allows in a
primitive valuepublic String correct(String value)
correct in interface PrimitiveTypeRulevalue - an original value to be correctedPrimitiveTypeRule.correct(java.lang.String)public boolean test(String value)
PrimitiveTypeRuletest in interface PrimitiveTypeRulePrimitiveTypeRule.test(java.lang.String)public String getDescription()
RulegetDescription in interface RuleRule.getDescription()public String getSectionReference()
RulegetSectionReference in interface RuleRule.getSectionReference()Copyright © 2001-2012 University Health Network. All Rights Reserved.