public class DateTimeValidator extends Object implements Validator, StateHolder
Modifier and Type | Field and Description |
---|---|
static String |
OUT_OF_RANGE_MESSAGE_ID |
static String |
VALIDATOR_ID |
NOT_IN_RANGE_MESSAGE_ID
Constructor and Description |
---|
DateTimeValidator() |
Modifier and Type | Method and Description |
---|---|
boolean |
isTransient() |
void |
restoreState(FacesContext context,
Object state) |
Object |
saveState(FacesContext context) |
void |
setTransient(boolean newTransientValue) |
void |
validate(FacesContext context,
UIComponent component,
Object value) |
public static final String VALIDATOR_ID
public static final String OUT_OF_RANGE_MESSAGE_ID
public Object saveState(FacesContext context)
saveState
in interface StateHolder
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
public boolean isTransient()
isTransient
in interface StateHolder
public void setTransient(boolean newTransientValue)
setTransient
in interface StateHolder
public void validate(FacesContext context, UIComponent component, Object value) throws ValidatorException
validate
in interface Validator
ValidatorException
Copyright © 2014 Nuxeo SA. All Rights Reserved.