org.apache.myfaces.custom.regexprvalidator

Class RegExprValidator

Implemented Interfaces:
StateHolder, Validator

public class RegExprValidator
extends java.lang.Object
implements Validator, StateHolder

Version:
$Revision: 169651 $ $Date: 2005-05-11 18:14:23 +0200 (Wed, 11 May 2005) $
Author:
mwessendorf (latest modification by $Author: grantsmith $)

Field Summary

static String
REGEXPR_MESSAGE_ID
The message identifier of the FacesMessage to be created if the creditcard check fails.
static String
VALIDATOR_ID
The standard converter id for this converter.

Constructor Summary

RegExprValidator()

Method Summary

String
getPattern()
boolean
isTransient()
void
restoreState(FacesContext context, Object state)
Object
saveState(FacesContext context)
void
setPattern(String string)
void
setTransient(boolean newTransientValue)
void
validate(FacesContext facesContext, UIComponent uiComponent, Object value)

Field Details

REGEXPR_MESSAGE_ID

public static final String REGEXPR_MESSAGE_ID
The message identifier of the FacesMessage to be created if the creditcard check fails.

VALIDATOR_ID

public static final String VALIDATOR_ID
The standard converter id for this converter.

Constructor Details

RegExprValidator

public RegExprValidator()

Method Details

getPattern

public String getPattern()
Returns:
the pattern, on which a value should be validated

isTransient

public boolean isTransient()

restoreState

public void restoreState(FacesContext context,
                         Object state)

saveState

public Object saveState(FacesContext context)

setPattern

public void setPattern(String string)
Parameters:
string - the pattern, on which a value should be validated

setTransient

public void setTransient(boolean newTransientValue)

validate

public void validate(FacesContext facesContext,
                     UIComponent uiComponent,
                     Object value)
            throws ValidatorException