javax.faces.convert
Class EnumConverter
java.lang.Object
javax.faces.convert.EnumConverter
- All Implemented Interfaces:
- StateHolder, Converter
@JSFConverter
public class EnumConverter
- extends Object
- implements Converter, StateHolder
see Javadoc of JSF Specification
- Author:
- Stan Silvert
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONVERTER_ID
public static final String CONVERTER_ID
- See Also:
- Constant Field Values
ENUM_ID
public static final String ENUM_ID
- See Also:
- Constant Field Values
ENUM_NO_CLASS_ID
public static final String ENUM_NO_CLASS_ID
- See Also:
- Constant Field Values
EnumConverter
public EnumConverter()
- Creates a new instance of EnumConverter
EnumConverter
public EnumConverter(Class targetClass)
getAsString
public String getAsString(FacesContext facesContext,
UIComponent uiComponent,
Object value)
throws ConverterException
- Specified by:
getAsString
in interface Converter
- Throws:
ConverterException
getAsObject
public Object getAsObject(FacesContext facesContext,
UIComponent uiComponent,
String value)
throws ConverterException
- Specified by:
getAsObject
in interface Converter
- Throws:
ConverterException
restoreState
public void restoreState(FacesContext context,
Object state)
- Specified by:
restoreState
in interface StateHolder
saveState
public Object saveState(FacesContext context)
- Specified by:
saveState
in interface StateHolder
setTransient
public void setTransient(boolean newTransientValue)
- Specified by:
setTransient
in interface StateHolder
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interface StateHolder
Copyright © 2011 The Apache Software Foundation. All Rights Reserved.