com.ibm.wbiserver.brules.mgmt.problem
Class ProblemDuplicatePropertyName
java.lang.Object
com.ibm.wbiserver.brules.mgmt.problem.Problem
com.ibm.wbiserver.brules.mgmt.problem.ProblemDuplicatePropertyName
- All Implemented Interfaces:
- java.io.Serializable
public class ProblemDuplicatePropertyName
- extends Problem
- implements java.io.Serializable
Problem class representing the error that a new property is being defined with the same
name as an existing property on the specified entity.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- See Also:
- Constant Field Values
ProblemDuplicatePropertyName
public ProblemDuplicatePropertyName(Property newProperty,
java.lang.Object entityContainingDuplicateProperty)
- Constructor for the ProblemDuplicatePropertyName class.
- Parameters:
newProperty
- The new property that has the duplicate name.entityContainingDuplicateProperty
- The entity containing the property.
getNewProperty
public Property getNewProperty()
- Get the new property containing the duplicate name.
- Returns:
- The new property containing the duplicate name.
getEntityContainingDuplicateProperty
public java.lang.Object getEntityContainingDuplicateProperty()
- Get the entity that contains the duplicate property. This object represents the entity on
which the new property was being defined. It could be any object that can have properties.
Some examples of types of entities that can contain properties are
BusinessRuleGroup
and BusinessRule
.
- Returns:
- The entity that contains the duplicate property.
getErrorMessage
public java.lang.String getErrorMessage()
- Specified by:
getErrorMessage
in class Problem