org.apache.myfaces.commons.validator
Class RegExprValidator

java.lang.Object
  extended by org.apache.myfaces.commons.validator.ValidatorBase
      extended by org.apache.myfaces.commons.validator.AbstractRegExprValidator
          extended by org.apache.myfaces.commons.validator.RegExprValidator
All Implemented Interfaces:
java.util.EventListener, javax.faces.component.PartialStateHolder, javax.faces.component.StateHolder, javax.faces.validator.Validator

public class RegExprValidator
extends AbstractRegExprValidator


Field Summary
static java.lang.String VALIDATOR_ID
           
 
Fields inherited from class org.apache.myfaces.commons.validator.AbstractRegExprValidator
REGEXPR_MESSAGE_ID
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
RegExprValidator()
           
 
Method Summary
 java.lang.String getPattern()
          the pattern, which is the base of the validation.
 java.lang.String getPatternExpression()
          the pattern, which is the base of the validation.
 void setPattern(java.lang.String pattern)
           
 void setPatternExpression(java.lang.String patternExpression)
           
 
Methods inherited from class org.apache.myfaces.commons.validator.AbstractRegExprValidator
validate
 
Methods inherited from class org.apache.myfaces.commons.validator.ValidatorBase
clearInitialState, getDetailMessage, getFacesContext, getFacesMessage, getMessage, getStateHelper, getStateHelper, getStringValue, getSummaryMessage, getValueExpression, initialStateMarked, isTransient, markInitialState, 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
See Also:
Constant Field Values
Constructor Detail

RegExprValidator

public RegExprValidator()
Method Detail

getPattern

public java.lang.String getPattern()
Description copied from class: AbstractRegExprValidator
the pattern, which is the base of the validation. It does not allow EL expressions (jsp special case).

Specified by:
getPattern in class AbstractRegExprValidator
Returns:
the pattern, on which a value should be validated

setPattern

public void setPattern(java.lang.String pattern)
Specified by:
setPattern in class AbstractRegExprValidator
Parameters:
pattern - the pattern, on which a value should be validated

getPatternExpression

public java.lang.String getPatternExpression()
Description copied from class: AbstractRegExprValidator
the pattern, which is the base of the validation. It allow EL expressions.

Specified by:
getPatternExpression in class AbstractRegExprValidator
Returns:
the pattern, on which a value should be validated

setPatternExpression

public void setPatternExpression(java.lang.String patternExpression)


Copyright © 2007-2010 The Apache Software Foundation. All Rights Reserved.