public abstract class AbstractConverter extends AbstractUtilities implements javax.faces.convert.Converter
Abstract base class for converters that use Apache Commons Validator as their foundation.
DEFAULT_RESOURCE_BUNDLE
Constructor and Description |
---|
AbstractConverter() |
Modifier and Type | Method and Description |
---|---|
abstract Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value)
Convert the specified string value, associated with the specified
UIComponent , into a corresponding model data object. |
abstract String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Convert the specified model data object, associated with the
specified
UIComponent , into a string suitable for rendering. |
getMessage, isTransient, message, message, message, restoreState, saveState, setMessage, setTransient
public abstract Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value)
Convert the specified string value, associated with the specified
UIComponent
, into a corresponding model data object.
getAsObject
in interface javax.faces.convert.Converter
context
- FacesContext
for the current requestcomponent
- UIComponent
associated with the
value to be convertedvalue
- String value to be convertedConverterException
- if conversion cannot be successfully
performedNullPointerException
- if context
or
component
is null
public abstract String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value)
Convert the specified model data object, associated with the
specified UIComponent
, into a string suitable for rendering.
getAsString
in interface javax.faces.convert.Converter
context
- FacesContext
for the current requestcomponent
- UIComponent
associated with the
model data object to be convertedvalue
- Model data object to be convertedConverterException
- if conversion cannot be successfully
performedNullPointerException
- if context
or
component
is null
Copyright © 2004-2013 Apache Software Foundation. All Rights Reserved.