com.izforge.izpack.util
Class RegularExpressionValidator

java.lang.Object
  extended bycom.izforge.izpack.util.RegularExpressionValidator
All Implemented Interfaces:
Validator

public class RegularExpressionValidator
extends java.lang.Object
implements Validator

A validator to enforce non-empty fields. This validator can be used for rule input fields in the UserInputPanel to make sure that the user's entry matches a specified regular expression.

Author:
Mike Cunneen

Field Summary
private static java.lang.String PATTERN_PARAM
           
static java.lang.String STR_PATTERN_DEFAULT
           
 
Constructor Summary
RegularExpressionValidator()
           
 
Method Summary
 boolean validate(ProcessingClient client)
          Validates the contend of an input field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STR_PATTERN_DEFAULT

public static final java.lang.String STR_PATTERN_DEFAULT
See Also:
Constant Field Values

PATTERN_PARAM

private static final java.lang.String PATTERN_PARAM
See Also:
Constant Field Values
Constructor Detail

RegularExpressionValidator

public RegularExpressionValidator()
Method Detail

validate

public boolean validate(ProcessingClient client)
Description copied from interface: Validator
Validates the contend of an input field.

Specified by:
validate in interface Validator
Parameters:
client - the client object using the services of this validator.
Returns:
true if the validation passes, otherwise false.