javax.faces.convert
Class EnumConverter
java.lang.Object
javax.faces.convert.EnumConverter
- All Implemented Interfaces:
- PartialStateHolder, StateHolder, Converter
@JSFConverter
public class EnumConverter
- extends Object
- implements Converter, PartialStateHolder
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
clearInitialState
public void clearInitialState()
- Specified by:
clearInitialState
in interface PartialStateHolder
initialStateMarked
public boolean initialStateMarked()
- Specified by:
initialStateMarked
in interface PartialStateHolder
markInitialState
public void markInitialState()
- Specified by:
markInitialState
in interface PartialStateHolder
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.