org.apache.myfaces.custom.regexprvalidator
Class RegExprValidator

java.lang.Object
  extended by org.apache.myfaces.validator.ValidatorBase
      extended by org.apache.myfaces.custom.regexprvalidator.AbstractRegExprValidator
          extended by org.apache.myfaces.custom.regexprvalidator.RegExprValidator
All Implemented Interfaces:
java.util.EventListener, 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.custom.regexprvalidator.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
 void restoreState(javax.faces.context.FacesContext facesContext, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
           
 void setPattern(java.lang.String pattern)
           
 
Methods inherited from class org.apache.myfaces.custom.regexprvalidator.AbstractRegExprValidator
validate
 
Methods inherited from class org.apache.myfaces.validator.ValidatorBase
getDetailMessage, getFacesContext, getFacesMessage, getMessage, getSummaryMessage, getValueBinding, isTransient, restoreAttachedState, saveAttachedState, setDetailMessage, setMessage, setSummaryMessage, setTransient, setValueBinding
 
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

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

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext facesContext)
Specified by:
saveState in interface javax.faces.component.StateHolder
Overrides:
saveState in class ValidatorBase

restoreState

public void restoreState(javax.faces.context.FacesContext facesContext,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder
Overrides:
restoreState in class ValidatorBase


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