org.rhq.core.pluginapi.configuration
Class ValidationError

java.lang.Object
  extended by org.rhq.core.pluginapi.configuration.ValidationError

public class ValidationError
extends Object

Encapsulates a configuration error that was caused by an invalid configuration value.


Constructor Summary
ValidationError(String propertyName, String invalidValue, org.rhq.core.util.exception.ExceptionPackage error)
           
ValidationError(String propertyName, String invalidValue, String errorMessage)
           
 
Method Summary
 org.rhq.core.util.exception.ExceptionPackage getError()
          The error that indicates how or why the value was invalid.
 String getInvalidValue()
          The value that did not pass the validation tests.
 String getPropertyName()
          Returns the name of the property whose value did not pass the validation tests.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ValidationError

public ValidationError(String propertyName,
                       String invalidValue,
                       org.rhq.core.util.exception.ExceptionPackage error)

ValidationError

public ValidationError(String propertyName,
                       String invalidValue,
                       String errorMessage)
Method Detail

getPropertyName

public String getPropertyName()
Returns the name of the property whose value did not pass the validation tests.

Returns:
property with the invalid value

getInvalidValue

public String getInvalidValue()
The value that did not pass the validation tests.

Returns:
the invalid value, in its string form

getError

public org.rhq.core.util.exception.ExceptionPackage getError()
The error that indicates how or why the value was invalid.

Returns:
validation error message

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2008-2009 RHQ Project Advisory Board (Red Hat, Inc.). All Rights Reserved.