Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.yajre.spi
Class DuplicateRuleNameException  view DuplicateRuleNameException download DuplicateRuleNameException.java

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byjava.lang.IllegalStateException
                  extended byorg.yajre.DroolsException
                      extended byorg.yajre.spi.RuleConstructionException
                          extended byorg.yajre.spi.DuplicateRuleNameException
All Implemented Interfaces:
java.io.Serializable

public class DuplicateRuleNameException
extends RuleConstructionException

Indicates an attempt to add a Rule to a RuleSet that already contains a Rule with the same name.


Nested Class Summary
 
Nested classes inherited from class java.lang.Throwable
 
Field Summary
private  Rule conflictingRule
           
private  Rule originalRule
           
private  RuleSet ruleSet
           
 
Fields inherited from class org.yajre.DroolsException
 
Fields inherited from class java.lang.IllegalStateException
 
Fields inherited from class java.lang.Throwable
 
Constructor Summary
DuplicateRuleNameException(RuleSet ruleSet, Rule originalRule, Rule conflictingRule)
          Construct.
 
Method Summary
 Rule getConflictingRule()
          Retrieve the new conflicting Rule.
 Rule getOriginalRule()
          Retrieve the original Rule in the RuleSet.
 RuleSet getRuleSet()
          Retrieve the RuleSet.
 
Methods inherited from class org.yajre.DroolsException
equals, getLocalizedMessage, getMessage, getWrapped, hashCode, printStackTrace, printStackTrace, printStackTrace, toString
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getStackTrace, initCause, setStackTrace
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ruleSet

private RuleSet ruleSet

originalRule

private Rule originalRule

conflictingRule

private Rule conflictingRule
Constructor Detail

DuplicateRuleNameException

public DuplicateRuleNameException(RuleSet ruleSet,
                                  Rule originalRule,
                                  Rule conflictingRule)
Construct.

Method Detail

getRuleSet

public RuleSet getRuleSet()
Retrieve the RuleSet.


getOriginalRule

public Rule getOriginalRule()
Retrieve the original Rule in the RuleSet.


getConflictingRule

public Rule getConflictingRule()
Retrieve the new conflicting Rule.