org.apache.myfaces.html5.demo.validator
Class PromoCodeValidator

java.lang.Object
  extended by org.apache.myfaces.html5.demo.validator.PromoCodeValidator
All Implemented Interfaces:
EventListener, javax.faces.validator.Validator, ClientSidePatternProvider

public class PromoCodeValidator
extends Object
implements javax.faces.validator.Validator, ClientSidePatternProvider


Field Summary
 
Fields inherited from interface javax.faces.validator.Validator
NOT_IN_RANGE_MESSAGE_ID
 
Constructor Summary
PromoCodeValidator()
           
 
Method Summary
 String getPattern()
           
 void validate(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PromoCodeValidator

public PromoCodeValidator()
Method Detail

getPattern

public String getPattern()
Specified by:
getPattern in interface ClientSidePatternProvider

validate

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


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