class: EnumConverter

public class: EnumConverter
Author: : Thomas Diebäcker, created 10.01.2007
Project: Phase: 1.0; Status: Proposed; Version: : $Revision: 1850 $ $LastChangedDate: 2008-12-17 1; Complexity: 1
Dates: Created: 16.07.2009 15:32:25; Modified: 16.07.2009 15:32:25;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {E1CEAB08-DA61-4c87-BBB9-76D2CCA29266}
Converter for converting Enums to Strings and vice versa.
 

Goto: Custom Properties, Fields, Methods

Appears in: editItem

Custom Properties
 
EnumConverter Attributes
Attribute Details
private static Logger
  logger
Initial: Logger.getLogger(EnumConverter.class)
private Object
  valueList
Initial: null
 
EnumConverter Methods
Operation Details
public
EnumConverter():
Sequential
Notes: Public constructor.
public
EnumConverter(
   Object[] valueList):
Sequential
Notes: Public constructor.
public
getAsObject(
   FacesContext facesContext,
   UIComponent uiComponent,
   String string):Object
Sequential
Notes: Converts a string value to an object out of the possible objects in the valueList.
public
getAsString(
   FacesContext facesContext,
   UIComponent uiComponent,
   Object object):String
Sequential
Notes: Converts an object to a string value.
@param string the string value which should be converted
private
guessValueList(
   String searchString):Object
Sequential
Notes: Tries to guess the enum that is used by searching all known lists for the String.
@return Array of objects of which at least one contained the searchString