org.apache.pivot.wtk.text.validation
Class FormattedValidator<F extends Format>

java.lang.Object
  extended by org.apache.pivot.wtk.text.validation.FormattedValidator<F>
All Implemented Interfaces:
Validator
Direct Known Subclasses:
DecimalValidator

public class FormattedValidator<F extends Format>
extends Object
implements Validator

A validator for a Format'ed value.

This class is mostly intended to be a base-class for other validators.


Field Summary
protected  F format
           
 
Constructor Summary
FormattedValidator(F format)
           
 
Method Summary
 boolean isValid(String text)
          Determines if a text value is valid based on the rules of the validator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

format

protected final F extends Format format
Constructor Detail

FormattedValidator

public FormattedValidator(F format)
Method Detail

isValid

public boolean isValid(String text)
Description copied from interface: Validator
Determines if a text value is valid based on the rules of the validator.

Specified by:
isValid in interface Validator
Returns:
true if the value is valid; false, otherwise.