public class DefaultValidationContext extends Object implements ca.uhn.hl7v2.validation.ValidationContext, Serializable, groovy.lang.GroovyObject
| Constructor and Description |
|---|
DefaultValidationContext() |
| Modifier and Type | Method and Description |
|---|---|
void |
addCompositeTypeRule(String version,
String messageType,
String triggerEvent,
CompositeTypeRule rule) |
DefaultValidationContext |
addContext(ca.uhn.hl7v2.validation.ValidationContext context) |
void |
addEncodingRule(String version,
String encoding,
ca.uhn.hl7v2.validation.EncodingRule rule) |
void |
addMessageRule(String version,
String messageType,
String triggerEvent,
ca.uhn.hl7v2.validation.MessageRule rule) |
void |
addPrimitiveRule(String version,
String typeName,
ca.uhn.hl7v2.validation.PrimitiveTypeRule rule) |
protected void |
addRule(String version,
String scope,
Object rule) |
protected void |
addToRules(String version,
String scope,
ca.uhn.hl7v2.validation.Rule rule) |
RuleBuilder |
configure() |
<T extends ca.uhn.hl7v2.model.Composite> |
getCompositeTypeRules(String version,
String messageType,
String triggerEvent,
Class<T> clazz) |
Collection<ca.uhn.hl7v2.validation.EncodingRule> |
getEncodingRules(String version,
String encoding) |
Collection<ca.uhn.hl7v2.validation.MessageRule> |
getMessageRules(String version,
String messageType,
String triggerEvent) |
groovy.lang.MetaClass |
getMetaClass() |
Collection<ca.uhn.hl7v2.validation.PrimitiveTypeRule> |
getPrimitiveRules(String version,
String typeName,
ca.uhn.hl7v2.model.Primitive type) |
Object |
getProperty(String property) |
boolean |
getRequireMessageRule() |
Object |
invokeMethod(String method,
Object arguments) |
boolean |
isRequireMessageRule() |
void |
setMetaClass(groovy.lang.MetaClass mc) |
void |
setProperty(String property,
Object value) |
void |
setRequireMessageRule(boolean value) |
public groovy.lang.MetaClass getMetaClass()
getMetaClass in interface groovy.lang.GroovyObjectpublic void setMetaClass(groovy.lang.MetaClass mc)
setMetaClass in interface groovy.lang.GroovyObjectpublic Object invokeMethod(String method, Object arguments)
invokeMethod in interface groovy.lang.GroovyObjectpublic Object getProperty(String property)
getProperty in interface groovy.lang.GroovyObjectpublic void setProperty(String property, Object value)
setProperty in interface groovy.lang.GroovyObjectpublic boolean getRequireMessageRule()
public boolean isRequireMessageRule()
public void setRequireMessageRule(boolean value)
public Collection<ca.uhn.hl7v2.validation.PrimitiveTypeRule> getPrimitiveRules(String version, String typeName, ca.uhn.hl7v2.model.Primitive type)
getPrimitiveRules in interface ca.uhn.hl7v2.validation.ValidationContextpublic Collection<ca.uhn.hl7v2.validation.MessageRule> getMessageRules(String version, String messageType, String triggerEvent)
getMessageRules in interface ca.uhn.hl7v2.validation.ValidationContextpublic <T extends ca.uhn.hl7v2.model.Composite> CompositeTypeRule[] getCompositeTypeRules(String version, String messageType, String triggerEvent, Class<T> clazz)
public Collection<ca.uhn.hl7v2.validation.EncodingRule> getEncodingRules(String version, String encoding)
getEncodingRules in interface ca.uhn.hl7v2.validation.ValidationContextpublic void addPrimitiveRule(String version, String typeName, ca.uhn.hl7v2.validation.PrimitiveTypeRule rule)
public void addCompositeTypeRule(String version, String messageType, String triggerEvent, CompositeTypeRule rule)
public void addMessageRule(String version, String messageType, String triggerEvent, ca.uhn.hl7v2.validation.MessageRule rule)
public void addEncodingRule(String version, String encoding, ca.uhn.hl7v2.validation.EncodingRule rule)
public RuleBuilder configure()
public DefaultValidationContext addContext(ca.uhn.hl7v2.validation.ValidationContext context)
protected void addToRules(String version, String scope, ca.uhn.hl7v2.validation.Rule rule)
Copyright © 2016 Open eHealth Foundation. All rights reserved.