public class ProblemRuleNameAlreadyInUse extends Problem implements java.io.Serializable
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT |
Constructor and Description |
---|
ProblemRuleNameAlreadyInUse(java.lang.String newRuleName,
Rule existingRuleUsingName,
RuleBlock ruleBlock)
Constructor for the ProblemRuleNameAlreadyInUse class.
|
Modifier and Type | Method and Description |
---|---|
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.
|
getErrorType
public static final java.lang.String COPYRIGHT
public ProblemRuleNameAlreadyInUse(java.lang.String newRuleName, Rule existingRuleUsingName, RuleBlock ruleBlock)
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.public Rule getExistingRuleUsingName()
public java.lang.String getNewRuleName()
public RuleBlock getRuleBlock()
public java.lang.String getErrorMessage()
getErrorMessage
in class Problem