org.apache.myfaces.custom.regexprvalidator

Class RegExprValidator

public class RegExprValidator extends 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 StringREGEXPR_MESSAGE_ID

The message identifier of the FacesMessage to be created if the creditcard check fails.

static StringVALIDATOR_ID

The standard converter id for this converter.

Constructor Summary
RegExprValidator()
Method Summary
StringgetPattern()
booleanisTransient()
voidrestoreState(FacesContext context, Object state)
ObjectsaveState(FacesContext context)
voidsetPattern(String string)
voidsetTransient(boolean newTransientValue)
voidvalidate(FacesContext facesContext, UIComponent uiComponent, Object value)

Field Detail

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 Detail

RegExprValidator

public RegExprValidator()

Method Detail

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)