org.srplib.validation
Interface ValidationError

All Superinterfaces:
Serializable
All Known Implementing Classes:
DefaultValidationError

public interface ValidationError
extends Serializable

Models single validation error. Holds error message and optionally an invalid form field.

Author:
Anton Pechinsky

Method Summary
 Object getContext()
          Returns validation context.
 String getError()
          Returns validation error message.
 

Method Detail

getError

String getError()
Returns validation error message.

Returns:
String error message.

getContext

Object getContext()
Returns validation context.

This may be a field, a form, a panel etc. In other words context is reference to object is being validated.

Returns:
Object an object representing context, null if error isn't associated with particular context.


Copyright © 2014. All Rights Reserved.