org.apache.myfaces.custom.regexprvalidator
Class AbstractRegExprValidator

java.lang.Object
  extended by org.apache.myfaces.validator.ValidatorBase
      extended by org.apache.myfaces.custom.regexprvalidator.AbstractRegExprValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
Direct Known Subclasses:
RegExprValidator

Deprecated. use myfaces commons mcv:validateRegExpr instead

public abstract class AbstractRegExprValidator
extends ValidatorBase

A custom validator for reg. expr., based upons Jakarta Commons. Unless otherwise specified, all attributes accept static values or EL expressions.

Since:
1.1.7
Version:
$Revision: 691856 $ $Date: 2008-09-03 21:40:30 -0500 (Wed, 03 Sep 2008) $
Author:
mwessendorf (latest modification by $Author: lu4242 $)

Field Summary
static java.lang.String REGEXPR_MESSAGE_ID
          Deprecated. The message identifier of the FacesMessage to be created if the regex check fails.
static java.lang.String VALIDATOR_ID
          Deprecated. The standard converter id for this converter.
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
AbstractRegExprValidator()
          Deprecated.  
 
Method Summary
abstract  java.lang.String getPattern()
          Deprecated. the pattern, which is the base of the validation
abstract  void setPattern(java.lang.String string)
          Deprecated.  
 void validate(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uiComponent, java.lang.Object value)
          Deprecated.  
 
Methods inherited from class org.apache.myfaces.validator.ValidatorBase
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStringValue, getSummaryMessage, getValueExpression, isTransient, restoreAttachedState, restoreState, saveAttachedState, saveState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueExpression
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VALIDATOR_ID

public static final java.lang.String VALIDATOR_ID
Deprecated. 

The standard converter id for this converter.

See Also:
Constant Field Values

REGEXPR_MESSAGE_ID

public static final java.lang.String REGEXPR_MESSAGE_ID
Deprecated. 

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

See Also:
Constant Field Values
Constructor Detail

AbstractRegExprValidator

public AbstractRegExprValidator()
Deprecated. 
Method Detail

validate

public void validate(javax.faces.context.FacesContext facesContext,
                     javax.faces.component.UIComponent uiComponent,
                     java.lang.Object value)
              throws javax.faces.validator.ValidatorException
Deprecated. 
Throws:
javax.faces.validator.ValidatorException

getPattern

public abstract java.lang.String getPattern()
Deprecated. 
the pattern, which is the base of the validation

Returns:
the pattern, on which a value should be validated

setPattern

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


Copyright © 2011 The Apache Software Foundation. All Rights Reserved.