org.apache.bval.model
Class ValidationListener.Error

java.lang.Object
  extended by org.apache.bval.model.ValidationListener.Error
All Implemented Interfaces:
Serializable
Enclosing interface:
ValidationListener

public static class ValidationListener.Error
extends Object
implements Serializable

An object holding a single validation constraint violation found during the validation process.

See Also:
Serialized Form

Field Summary
(package private)  Object owner
          Owner
(package private)  String propertyName
          Property name
(package private)  String reason
          Reason
 
Constructor Summary
ValidationListener.Error(String aReason, Object aOwner, String aPropertyName)
          Create a new Error instance.
 
Method Summary
 Object getOwner()
          Get the owner.
 String getPropertyName()
          Get the propertyName.
 String getReason()
          Get the reason.
 String toString()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

reason

final String reason
Reason


owner

final Object owner
Owner


propertyName

final String propertyName
Property name

Constructor Detail

ValidationListener.Error

public ValidationListener.Error(String aReason,
                                Object aOwner,
                                String aPropertyName)
Create a new Error instance.

Parameters:
aReason -
aOwner -
aPropertyName -
Method Detail

getReason

public String getReason()
Get the reason.

Returns:
String

getOwner

public Object getOwner()
Get the owner.

Returns:
Object

getPropertyName

public String getPropertyName()
Get the propertyName.

Returns:
String

toString

public String toString()

Overrides:
toString in class Object


Copyright © 2010-2014 The Apache Software Foundation. All Rights Reserved.