org.rhq.core.gui.validator
Class PropertySimpleValueValidator
java.lang.Object
org.rhq.core.gui.validator.PropertySimpleValueValidator
- All Implemented Interfaces:
- EventListener, javax.faces.component.StateHolder, javax.faces.validator.Validator
public class PropertySimpleValueValidator
- extends Object
- implements javax.faces.validator.Validator, javax.faces.component.StateHolder
A JSF validator that validates a String, which represents the value of a JON simple property (i.e.
PropertySimple). A definition for the simple property PropertyDefinitionSimple can optionally be
specified when this validator is instantiated. If a definition was specified, the value will be validated against the
definition's type (i.e. PropertySimpleType) and any constraints
(i.e. Constraints) included in the definition.
- Author:
- Ian Springer
| Fields inherited from interface javax.faces.validator.Validator |
NOT_IN_RANGE_MESSAGE_ID |
|
Method Summary |
static javax.faces.validator.Validator |
createValidator(org.rhq.core.domain.configuration.definition.constraint.Constraint constraint)
|
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
|
Object |
saveState(javax.faces.context.FacesContext facesContext)
|
void |
setTransient(boolean transientValue)
|
void |
validate(javax.faces.context.FacesContext facesContext,
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 |
PropertySimpleValueValidator
public PropertySimpleValueValidator()
PropertySimpleValueValidator
public PropertySimpleValueValidator(@Nullable
org.rhq.core.domain.configuration.definition.PropertyDefinitionSimple propertyDefinition)
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
createValidator
@NotNull
public static javax.faces.validator.Validator createValidator(org.rhq.core.domain.configuration.definition.constraint.Constraint constraint)
restoreState
public void restoreState(javax.faces.context.FacesContext facesContext,
Object state)
- 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
isTransient
public boolean isTransient()
- Specified by:
isTransient in interface javax.faces.component.StateHolder
setTransient
public void setTransient(boolean transientValue)
- Specified by:
setTransient in interface javax.faces.component.StateHolder
Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.