IBM WebSphere Application ServerTM
Release 8

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

java.lang.Object
  extended by com.ibm.wbiserver.brules.mgmt.problem.Problem
      extended by 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
           
 
Constructor Summary
ProblemDuplicatePropertyName(Property newProperty, java.lang.Object entityContainingDuplicateProperty)
          Constructor for the ProblemDuplicatePropertyName class.
 
Method Summary
 java.lang.Object getEntityContainingDuplicateProperty()
          Get the entity that contains the duplicate property.
 java.lang.String getErrorMessage()
           
 Property getNewProperty()
          Get the new property containing the duplicate name.
 
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

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.
Method Detail

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

IBM WebSphere Application ServerTM
Release 8