com.veromodo.tempo.filters.rules
Class RuleSet

java.lang.Object
  extended by com.veromodo.tempo.filters.rules.RuleSet
All Implemented Interfaces:
SemanticRules

public class RuleSet
extends java.lang.Object
implements SemanticRules

Implements a collection of Semantic Rules. The node class name through the hashtable is used to deside if a check is defined for a node. Each node can have multiple rules defined on it.


Constructor Summary
RuleSet()
           
RuleSet(SemanticRule[] t)
           
 
Method Summary
 void addAll(SemanticRules scs)
           
 void addRule(SemanticRule sc)
           
 java.util.HashSet<SemanticRule> get(java.lang.Class c)
           
 java.util.Collection<java.util.HashSet<SemanticRule>> getAll()
           
 boolean hasRulesFor(java.lang.Class c)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RuleSet

public RuleSet()

RuleSet

public RuleSet(SemanticRule[] t)
Method Detail

addRule

public void addRule(SemanticRule sc)

hasRulesFor

public boolean hasRulesFor(java.lang.Class c)
Specified by:
hasRulesFor in interface SemanticRules

get

public java.util.HashSet<SemanticRule> get(java.lang.Class c)
Specified by:
get in interface SemanticRules

addAll

public void addAll(SemanticRules scs)

getAll

public java.util.Collection<java.util.HashSet<SemanticRule>> getAll()
Specified by:
getAll in interface SemanticRules