Class ClosureEncodingRule
- java.lang.Object
-
- org.openehealth.ipf.modules.hl7.validation.model.ClosureRuleSupport
-
- org.openehealth.ipf.modules.hl7.validation.model.ClosureEncodingRule
-
- All Implemented Interfaces:
EncodingRule
,Rule<String>
,GroovyObject
,Serializable
public class ClosureEncodingRule extends ClosureRuleSupport implements EncodingRule, GroovyObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosureEncodingRule(Closure testClosure)
ClosureEncodingRule(String description, String sectionReference, Closure testClosure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationException[]
apply(String msg)
MetaClass
getMetaClass()
void
setMetaClass(MetaClass mc)
ValidationException[]
test(String msg)
-
Methods inherited from class org.openehealth.ipf.modules.hl7.validation.model.ClosureRuleSupport
getDescription, getSectionReference, getTestClosure, setDescription, setSectionReference, setTestClosure
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface groovy.lang.GroovyObject
getProperty, invokeMethod, setProperty
-
Methods inherited from interface ca.uhn.hl7v2.validation.Rule
getDescription, getSectionReference
-
-
-
-
Method Detail
-
getMetaClass
public MetaClass getMetaClass()
- Specified by:
getMetaClass
in interfaceGroovyObject
- Overrides:
getMetaClass
in classClosureRuleSupport
-
setMetaClass
public void setMetaClass(MetaClass mc)
- Specified by:
setMetaClass
in interfaceGroovyObject
- Overrides:
setMetaClass
in classClosureRuleSupport
-
test
public ValidationException[] test(String msg)
- Specified by:
test
in interfaceEncodingRule
-
apply
public ValidationException[] apply(String msg)
-
-