public class ClosurePrimitiveTypeRule extends ClosureRuleSupport implements ca.uhn.hl7v2.validation.PrimitiveTypeRule, groovy.lang.GroovyObject
| Constructor and Description |
|---|
ClosurePrimitiveTypeRule(groovy.lang.Closure testClosure) |
ClosurePrimitiveTypeRule(String description,
String sectionReference,
groovy.lang.Closure testClosure) |
| Modifier and Type | Method and Description |
|---|---|
ca.uhn.hl7v2.validation.ValidationException[] |
apply(String value) |
String |
correct(String s) |
groovy.lang.MetaClass |
getMetaClass() |
boolean |
getOmitLeadingWhitespace() |
boolean |
getOmitTrailingWhitespace() |
static groovy.lang.Closure |
getPASS() |
Object |
getProperty(String property) |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isOmitLeadingWhitespace() |
boolean |
isOmitTrailingWhitespace() |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setOmitLeadingWhitespace(boolean value) |
void |
setOmitTrailingWhitespace(boolean value) |
static void |
setPASS(groovy.lang.Closure value) |
void |
setProperty(String property,
Object value) |
boolean |
test(String s) |
getDescription, getSectionReference, getTestClosure, setDescription, setSectionReference, setTestClosurepublic ClosurePrimitiveTypeRule(groovy.lang.Closure testClosure)
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectgetMetaClass in class ClosureRuleSupportpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectsetMetaClass in class ClosureRuleSupportpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectinvokeMethod in class ClosureRuleSupportpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectgetProperty in class ClosureRuleSupportpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectsetProperty in class ClosureRuleSupportpublic boolean getOmitLeadingWhitespace()
public boolean isOmitLeadingWhitespace()
public void setOmitLeadingWhitespace(boolean value)
public boolean getOmitTrailingWhitespace()
public boolean isOmitTrailingWhitespace()
public void setOmitTrailingWhitespace(boolean value)
public static groovy.lang.Closure getPASS()
public static void setPASS(groovy.lang.Closure value)
public String correct(String s)
correct in interface ca.uhn.hl7v2.validation.PrimitiveTypeRulepublic boolean test(String s)
test in interface ca.uhn.hl7v2.validation.PrimitiveTypeRuleCopyright © 2016 Open eHealth Foundation. All rights reserved.