Class ClosurePrimitiveTypeRule
java.lang.Object
org.openehealth.ipf.modules.hl7.validation.model.ClosureRuleSupport
org.openehealth.ipf.modules.hl7.validation.model.ClosurePrimitiveTypeRule
- All Implemented Interfaces:
PrimitiveTypeRule
,Rule<String>
,GroovyObject
,Serializable
public class ClosurePrimitiveTypeRule
extends ClosureRuleSupport
implements PrimitiveTypeRule, GroovyObject
- See Also:
-
Constructor Summary
ConstructorDescriptionClosurePrimitiveTypeRule
(Closure testClosure) ClosurePrimitiveTypeRule
(String description, String sectionReference, Closure testClosure) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
static Closure
getPASS()
boolean
boolean
void
void
setOmitLeadingWhitespace
(boolean value) void
setOmitTrailingWhitespace
(boolean value) static void
boolean
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
-
Constructor Details
-
ClosurePrimitiveTypeRule
-
ClosurePrimitiveTypeRule
-
-
Method Details
-
getMetaClass
- Specified by:
getMetaClass
in interfaceGroovyObject
- Overrides:
getMetaClass
in classClosureRuleSupport
-
setMetaClass
- Specified by:
setMetaClass
in interfaceGroovyObject
- Overrides:
setMetaClass
in classClosureRuleSupport
-
getOmitLeadingWhitespace
public boolean getOmitLeadingWhitespace() -
isOmitLeadingWhitespace
public boolean isOmitLeadingWhitespace() -
setOmitLeadingWhitespace
public void setOmitLeadingWhitespace(boolean value) -
getOmitTrailingWhitespace
public boolean getOmitTrailingWhitespace() -
isOmitTrailingWhitespace
public boolean isOmitTrailingWhitespace() -
setOmitTrailingWhitespace
public void setOmitTrailingWhitespace(boolean value) -
getPASS
-
setPASS
-
correct
- Specified by:
correct
in interfacePrimitiveTypeRule
-
test
- Specified by:
test
in interfacePrimitiveTypeRule
-
apply
-