javax.faces.validator
Class MethodExpressionValidator

java.lang.Object
  extended by javax.faces.validator.MethodExpressionValidator
All Implemented Interfaces:
EventListener, StateHolder, Validator

public class MethodExpressionValidator
extends Object
implements Validator, StateHolder

see Javadoc of JSF Specification

Author:
Stan Silvert

Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
MethodExpressionValidator()
          Creates a new instance of MethodExpressionValidator
MethodExpressionValidator(javax.el.MethodExpression methodExpression)
           
 
Method Summary
 boolean isTransient()
           
 void restoreState(FacesContext context, Object state)
           
 Object saveState(FacesContext context)
           
 void setTransient(boolean newTransientValue)
           
 void validate(FacesContext context, UIComponent component, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MethodExpressionValidator

public MethodExpressionValidator()
Creates a new instance of MethodExpressionValidator


MethodExpressionValidator

public MethodExpressionValidator(javax.el.MethodExpression methodExpression)
Method Detail

validate

public void validate(FacesContext context,
                     UIComponent component,
                     Object value)
              throws ValidatorException
Specified by:
validate in interface Validator
Throws:
ValidatorException

restoreState

public void restoreState(FacesContext context,
                         Object state)
Specified by:
restoreState in interface StateHolder

saveState

public Object saveState(FacesContext context)
Specified by:
saveState in interface StateHolder

setTransient

public void setTransient(boolean newTransientValue)
Specified by:
setTransient in interface StateHolder

isTransient

public boolean isTransient()
Specified by:
isTransient in interface StateHolder


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