org.jdesktop.swing.data
Interface Validator
- public interface Validator
Interface for defining an object which performs validation checks
on a value object to determine whether or not it is valid.
|
Method Summary |
boolean |
validate(Object value,
Locale locale,
String[] error)
Determines whether or not the specified value is valid. |
validate
public boolean validate(Object value,
Locale locale,
String[] error)
- Determines whether or not the specified value is valid. If
validation passes, returns
true. If
validation fails, returns false and an
appropriate localized error message will be placed in the
first index of the error String array.
- Parameters:
value - the value to be validatedlocale - Locale object which should be used to encode any
returned error messageserror - String array used to return an error message if
validation fails
- Returns:
- boolean indicating whether or not the specified object
is valid
Copyright 2004 by Sun Microsystems, Inc. All Rights Reserved.