public class RuleBinding<T extends Rule<?>> extends Object implements Serializable
Rule
.Constructor and Description |
---|
RuleBinding(String theVersion,
String theScope,
T theRule)
Active by default.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
applies(String theBindingData,
String theItemData)
An abstraction of appliesToVersion() and appliesToScope().
|
boolean |
appliesToScope(String theType) |
boolean |
appliesToVersion(String theVersion) |
boolean |
getActive() |
T |
getRule() |
String |
getScope() |
String |
getVersion() |
void |
setActive(boolean isActive) |
String |
toString() |
public RuleBinding(String theVersion, String theScope, T theRule)
theVersion
- see getVersion()
theScope
- see getScope()
theRule
- see getRule()
public boolean getActive()
public void setActive(boolean isActive)
isActive
- true if the binding is currently activepublic String getVersion()
public String getScope()
MessageRule
s this is the message type and trigger
event, separated by a ^ (either value may be *, meaning any). For
PrimitiveTypeRule
s this is the datatype name (*
means any). For EncodingRule
s this is the encoding
name (again, * means any).public boolean appliesToVersion(String theVersion)
theVersion
- an HL7 versionpublic boolean appliesToScope(String theType)
theType
- an item description to be checked against getScope()protected static boolean applies(String theBindingData, String theItemData)
Copyright © 2001–2017 University Health Network. All rights reserved.