org.rhq.core.gui.validator
Class RegexValidator
java.lang.Object
org.rhq.core.gui.validator.RegexValidator
- All Implemented Interfaces:
- EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
public class RegexValidator
- extends Object
- implements javax.faces.validator.Validator, javax.faces.component.StateHolder
A validator that validates that the given value matches a regular expression.
- Author:
- Mark Spritzler
| Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegexValidator
public RegexValidator()
RegexValidator
public RegexValidator(String regex)
validate
public void validate(javax.faces.context.FacesContext facesContext,
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
getRegex
public String getRegex()
setRegex
public void setRegex(String regex)
isTransient
public boolean isTransient()
- Specified by:
isTransient in interface javax.faces.component.StateHolder
restoreState
public void restoreState(javax.faces.context.FacesContext facesContext,
Object object)
- Specified by:
restoreState in interface javax.faces.component.StateHolder
saveState
public Object saveState(javax.faces.context.FacesContext facesContext)
- Specified by:
saveState in interface javax.faces.component.StateHolder
setTransient
public void setTransient(boolean isTransient)
- Specified by:
setTransient in interface javax.faces.component.StateHolder
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.