IBM WebSphere Application ServerTM
Release 8

com.ibm.wbiserver.brules.mgmt.problem
Class ProblemRuleNameAlreadyInUse

java.lang.Object
  extended by com.ibm.wbiserver.brules.mgmt.problem.Problem
      extended by com.ibm.wbiserver.brules.mgmt.problem.ProblemRuleNameAlreadyInUse
All Implemented Interfaces:
java.io.Serializable

public class ProblemRuleNameAlreadyInUse
extends Problem
implements java.io.Serializable

Problem class representing the error that the name of the new rule being added to the rule block is already in use for another rule in that rule block.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
           
 
Constructor Summary
ProblemRuleNameAlreadyInUse(java.lang.String newRuleName, Rule existingRuleUsingName, RuleBlock ruleBlock)
          Constructor for the ProblemRuleNameAlreadyInUse class.
 
Method Summary
 java.lang.String getErrorMessage()
           
 Rule getExistingRuleUsingName()
          Get the existing rule that is already using the name.
 java.lang.String getNewRuleName()
          Get the name of the new rule that is in error.
 RuleBlock getRuleBlock()
          Get the rule block to which the rule was being added.
 
Methods inherited from class com.ibm.wbiserver.brules.mgmt.problem.Problem
getErrorType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Constructor Detail

ProblemRuleNameAlreadyInUse

public ProblemRuleNameAlreadyInUse(java.lang.String newRuleName,
                                   Rule existingRuleUsingName,
                                   RuleBlock ruleBlock)
Constructor for the ProblemRuleNameAlreadyInUse class.

Parameters:
newRuleName - The name of the new rule for the rule block.
existingRuleUsingName - The existing rule that is already using the name.
ruleBlock - The rule block to which the rule was being added.
Method Detail

getExistingRuleUsingName

public Rule getExistingRuleUsingName()
Get the existing rule that is already using the name.

Returns:
The existing rule that is already using the name.

getNewRuleName

public java.lang.String getNewRuleName()
Get the name of the new rule that is in error.

Returns:
The name of the new rule that is in error.

getRuleBlock

public RuleBlock getRuleBlock()
Get the rule block to which the rule was being added.

Returns:
The rule block to which the rule was being added.

getErrorMessage

public java.lang.String getErrorMessage()
Specified by:
getErrorMessage in class Problem

IBM WebSphere Application ServerTM
Release 8