Package ca.uhn.hl7v2.validation.impl
Class MessageRuleBinding
java.lang.Object
ca.uhn.hl7v2.validation.impl.RuleBinding<MessageRule>
ca.uhn.hl7v2.validation.impl.MessageRuleBinding
- All Implemented Interfaces:
Serializable
A
RuleBinding that applies to MessageRules.
In general there is no need to use this class directly. Instead use the Validation builder classes to generate rules and rule bindings.
- Author:
- Bryan Tripp
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionMessageRuleBinding(String theVersion, String theMessageType, String theTriggerEvent, MessageRule theRule) -
Method Summary
Methods inherited from class ca.uhn.hl7v2.validation.impl.RuleBinding
applies, appliesToVersion, getActive, getRule, getScope, getVersion, setActive, toString
-
Constructor Details
-
MessageRuleBinding
public MessageRuleBinding(String theVersion, String theMessageType, String theTriggerEvent, MessageRule theRule) - Parameters:
theVersion- seeRuleBinding.getVersion()theMessageType- a value valid for MSH-9-1 or * for alltheTriggerEvent- a value valid for MSH-9-2 or * for alltheRule- rule to be used for binding
-
-
Method Details
-
appliesToScope
- Overrides:
appliesToScopein classRuleBinding<MessageRule>- Parameters:
theScope- must be in the form type^event (ie message type and trigger event separated by a caret)- Returns:
- true if the given type is within scope, ie if it matches getScope() or getScope() is *
-