ca.uhn.hl7v2.validation.impl
Class MessageRuleBinding

java.lang.Object
  extended by ca.uhn.hl7v2.validation.impl.RuleBinding
      extended by ca.uhn.hl7v2.validation.impl.MessageRuleBinding
All Implemented Interfaces:
java.io.Serializable

public class MessageRuleBinding
extends RuleBinding

A RuleBinding that applies to MessageRules.

Version:
$Revision: 1.1 $ updated on $Date: 2007/02/19 02:24:40 $ by $Author: jamesagnew $
Author:
Bryan Tripp
See Also:
Serialized Form

Constructor Summary
MessageRuleBinding(java.lang.String theVersion, java.lang.String theMessageType, java.lang.String theTriggerEvent, MessageRule theRule)
           
 
Method Summary
 boolean appliesToScope(java.lang.String theScope)
           
 
Methods inherited from class ca.uhn.hl7v2.validation.impl.RuleBinding
applies, appliesToVersion, getActive, getRule, getScope, getVersion, setActive
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageRuleBinding

public MessageRuleBinding(java.lang.String theVersion,
                          java.lang.String theMessageType,
                          java.lang.String theTriggerEvent,
                          MessageRule theRule)
Parameters:
theVersion - see RuleBinding.getVersion()
theMessageType - a value valid for MSH-9-1 or * for all
theTriggerEvent - a value valid for MSH-9-2 or * for all
theRule -
Method Detail

appliesToScope

public boolean appliesToScope(java.lang.String theScope)
Overrides:
appliesToScope in class RuleBinding
Parameters:
theScope - must be in the form type^event (ie message type and trigger event separated by a carat)
Returns:
true if the given type is within scope, ie if it matches getScope() or getScope() is *


Copyright © 2001-2011 University Health Network. All Rights Reserved.