public class ClosurePrimitiveTypeRule extends ClosureRuleSupport implements ca.uhn.hl7v2.validation.PrimitiveTypeRule
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, setTestClosure
public ClosurePrimitiveTypeRule(groovy.lang.Closure testClosure)
public groovy.lang.MetaClass getMetaClass()
getMetaClass
in interface groovy.lang.GroovyObject
getMetaClass
in class ClosureRuleSupport
public void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass
in interface groovy.lang.GroovyObject
setMetaClass
in class ClosureRuleSupport
public Object invokeMethod(String method, Object arguments)
invokeMethod
in interface groovy.lang.GroovyObject
invokeMethod
in class ClosureRuleSupport
public Object getProperty(String property)
getProperty
in interface groovy.lang.GroovyObject
getProperty
in class ClosureRuleSupport
public void setProperty(String property, Object value)
setProperty
in interface groovy.lang.GroovyObject
setProperty
in class ClosureRuleSupport
public 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.PrimitiveTypeRule
public boolean test(String s)
test
in interface ca.uhn.hl7v2.validation.PrimitiveTypeRule
Copyright © 2018 Open eHealth Foundation. All rights reserved.