com.ibm.wbiserver.brules.mgmt.problem

Class ProblemDuplicatePropertyName

  1. java.lang.Object
  2. extended bycom.ibm.wbiserver.brules.mgmt.problem.Problem
  3. extended bycom.ibm.wbiserver.brules.mgmt.problem.ProblemDuplicatePropertyName
All implemented interfaces:
java.io.Serializable

  1. public class ProblemDuplicatePropertyName
  2. extends Problem
  3. 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

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Constructor Summary

Constructor and Description
ProblemDuplicatePropertyName(Property newProperty,java.lang.Object entityContainingDuplicateProperty)
Constructor for the ProblemDuplicatePropertyName class.

Method Summary

Modifier and Type Method and Description
  1. java.lang.Object
getEntityContainingDuplicateProperty()
Get the entity that contains the duplicate property.
  1. java.lang.String
getErrorMessage()
  1. 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

  1. public static final java.lang.String COPYRIGHT
See Also:

Constructor Detail

ProblemDuplicatePropertyName

  1. public ProblemDuplicatePropertyName( Property newProperty,
  2. 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

  1. public Property getNewProperty( )
Get the new property containing the duplicate name.
Returns:
The new property containing the duplicate name.

getEntityContainingDuplicateProperty

  1. 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

  1. public java.lang.String getErrorMessage( )
Specified by: