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:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ClosurePrimitiveTypeRule(Closure testClosure)
ClosurePrimitiveTypeRule(String description, String sectionReference, Closure testClosure)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ValidationException[]
apply(String value)
String
correct(String s)
MetaClass
getMetaClass()
boolean
getOmitLeadingWhitespace()
boolean
getOmitTrailingWhitespace()
static Closure
getPASS()
boolean
isOmitLeadingWhitespace()
boolean
isOmitTrailingWhitespace()
void
setMetaClass(MetaClass mc)
void
setOmitLeadingWhitespace(boolean value)
void
setOmitTrailingWhitespace(boolean value)
static void
setPASS(Closure value)
boolean
test(String s)
-
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
-
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
public static Closure getPASS()
-
setPASS
public static void setPASS(Closure value)
-
correct
public String correct(String s)
- Specified by:
correct
in interfacePrimitiveTypeRule
-
test
public boolean test(String s)
- Specified by:
test
in interfacePrimitiveTypeRule
-
apply
public ValidationException[] apply(String value)
-
-