org.urhl7.igor
Class HL7Rule

java.lang.Object
  extended by org.urhl7.igor.HL7Rule

public class HL7Rule
extends Object

Specifies which rules should be applied to portions of an HL7 message/structure.


Constructor Summary
HL7Rule(LocationSpecification loc, Rule rule)
          Define an HL7Rule that has location and a rule to apply
HL7Rule(String descriptor, Rule rule)
          Define an HL7Rule that has location and a rule to apply
 
Method Summary
 LocationSpecification getLocationSpecification()
          Get the locationSpecification target of this HL7Rule
 Rule getRuleToEnforce()
          Get the rule to apply to the specifed location
 void setLocationSpecification(LocationSpecification loc)
          Set the locationSpecification target of this HL7Rule
 void setRuleToEnforce(Rule ruleToEnforce)
          Define the rule to apply to the specifed location
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HL7Rule

public HL7Rule(String descriptor,
               Rule rule)
Define an HL7Rule that has location and a rule to apply

Parameters:
descriptor - the description of the location using HL7 notation
rule - the rule to apply to this segment or field

HL7Rule

public HL7Rule(LocationSpecification loc,
               Rule rule)
Define an HL7Rule that has location and a rule to apply

Parameters:
loc - the location of the field or segment
rule - the rule to apply to this segment or field
Method Detail

getLocationSpecification

public LocationSpecification getLocationSpecification()
Get the locationSpecification target of this HL7Rule

Returns:
the location

setLocationSpecification

public void setLocationSpecification(LocationSpecification loc)
Set the locationSpecification target of this HL7Rule

Parameters:
loc - the location to set

getRuleToEnforce

public Rule getRuleToEnforce()
Get the rule to apply to the specifed location

Returns:
the rule to enforce

setRuleToEnforce

public void setRuleToEnforce(Rule ruleToEnforce)
Define the rule to apply to the specifed location

Parameters:
ruleToEnforce - the rule to enforce to set