domparser.Rules
Class Ruleset

java.lang.Object
  |
  +--domparser.Rules.AbstractRuleset
        |
        +--domparser.Rules.Ruleset
All Implemented Interfaces:
RulesetInterface

public class Ruleset
extends AbstractRuleset


Constructor Summary
Ruleset()
           
 
Method Summary
 void addRule(java.lang.String name, java.lang.Class c, java.lang.Boolean active)
          Adds a rule to the Ruleset.
 java.lang.Boolean[] getActiveArray()
          Retrieves the array of Boolean objects defining what rules in the Ruleset are active.
 java.lang.Class[] getAllActiveRules()
          Retrieves all the active rules in the Ruleset, as an array of Class objects.
 java.lang.Class[] getClasses()
          Retrieves the Class objects defined in the Ruleset as an array of Class objects.
 java.lang.Class getRule(java.lang.String name)
          Retrieves a RuleObject from the Ruleset, returned as a Class object.
 java.lang.String[] getRuleNames()
          Retrieves the names of all the rules in the Ruleset as a String array.
 void init()
           
 java.lang.Object instantiateClass(java.lang.Class c)
           
 
Methods inherited from class domparser.Rules.AbstractRuleset
trimArrays
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Ruleset

public Ruleset()
Method Detail

init

public void init()

addRule

public void addRule(java.lang.String name,
                    java.lang.Class c,
                    java.lang.Boolean active)
Description copied from class: AbstractRuleset

Adds a rule to the Ruleset.

Overrides:
addRule in class AbstractRuleset
Following copied from class: domparser.Rules.AbstractRuleset
Parameters:
name - The name of the rule to add.
c - The class name of the rule to add.
active - The boolean flag for the rule. True means the rule is active.
Throws:
HL7Exception -  

getRule

public java.lang.Class getRule(java.lang.String name)
Description copied from class: AbstractRuleset

Retrieves a RuleObject from the Ruleset, returned as a Class object.

Overrides:
getRule in class AbstractRuleset
Following copied from class: domparser.Rules.AbstractRuleset
Parameters:
name - The name of the rule to retrieve.
Throws:
HL7Exception -  

getRuleNames

public java.lang.String[] getRuleNames()
Description copied from class: AbstractRuleset

Retrieves the names of all the rules in the Ruleset as a String array.

Overrides:
getRuleNames in class AbstractRuleset
Following copied from class: domparser.Rules.AbstractRuleset
Throws:
HL7Exception -  

getAllActiveRules

public java.lang.Class[] getAllActiveRules()
Description copied from class: AbstractRuleset

Retrieves all the active rules in the Ruleset, as an array of Class objects.

Overrides:
getAllActiveRules in class AbstractRuleset
Following copied from class: domparser.Rules.AbstractRuleset
Throws:
HL7Exception -  

getClasses

public java.lang.Class[] getClasses()
Description copied from class: AbstractRuleset

Retrieves the Class objects defined in the Ruleset as an array of Class objects.

Overrides:
getClasses in class AbstractRuleset
Following copied from class: domparser.Rules.AbstractRuleset
Throws:
HL7Exception -  

getActiveArray

public java.lang.Boolean[] getActiveArray()
Description copied from class: AbstractRuleset

Retrieves the array of Boolean objects defining what rules in the Ruleset are active.

Overrides:
getActiveArray in class AbstractRuleset

instantiateClass

public java.lang.Object instantiateClass(java.lang.Class c)