public class DateRangeValidator extends AbstractValidator
| Constructor and Description |
|---|
DateRangeValidator() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getMax()
Gets the maximum date.
|
Object |
getMin()
Gets the minimum date.
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
Restores the state saved by
saveState(FacesContext). |
Object |
saveState(javax.faces.context.FacesContext facesContext)
Saves the state of this validator.
|
void |
setMax(Object maximumDate)
Sets the maximum date.
|
void |
setMin(Object minimumDate)
Sets the minimum date.
|
void |
validate(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object value)
Validates that the supplied value is a date within the range [min ..max].
|
getFormattedErrorMessage, getMessage, hasMessage, isComponentOfTypeUIInput, setMessageisTransient, setTransientpublic Object getMin()
public void setMin(Object minimumDate)
minimumDate - The minimum date.
public Object getMax()
public void setMax(Object maximumDate)
maximumDate - The maximum date.
public void validate(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent uiComponent,
Object value)
UIInputfacesContext - The FacesContext.uiComponent - The component that needs to be validated.value - The date that needs to be validated.NullPointerException - When either the supplied facesContext or uiComponent is null.javax.faces.validator.ValidatorException - When the supplied value is not in the range: [min .. max]public Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHoldersaveState in class AbstractValidatorfacesContext - The FacesContext.public void restoreState(javax.faces.context.FacesContext facesContext,
Object state)
saveState(FacesContext).restoreState in interface javax.faces.component.StateHolderrestoreState in class AbstractValidatorfacesContext - The FacesContext.state - The state saved by saveState(FacesContext).Copyright © 2008–2018. All rights reserved.