Class ClosureMessageRule
- java.lang.Object
-
- org.openehealth.ipf.modules.hl7.validation.model.ClosureRuleSupport
-
- org.openehealth.ipf.modules.hl7.validation.model.ClosureMessageRule
-
- All Implemented Interfaces:
MessageRule
,Rule<Message>
,GroovyObject
,Serializable
public class ClosureMessageRule extends ClosureRuleSupport implements MessageRule, GroovyObject
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosureMessageRule()
ClosureMessageRule(Closure testClosure)
ClosureMessageRule(String description, String sectionReference, Closure testClosure)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationException[]
apply(Message msg)
MetaClass
getMetaClass()
void
setMetaClass(MetaClass mc)
ValidationException[]
test(Message 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(Message msg)
- Specified by:
test
in interfaceMessageRule
-
apply
public ValidationException[] apply(Message msg)
-
-