Class EnumConverter

All Implemented Interfaces:
PropertyEditor, Converter

public class EnumConverter extends AbstractConverter
Version:
$Rev$ $Date$
  • Constructor Details

  • Method Details

    • toStringImpl

      protected String toStringImpl(Object value)
      Description copied from class: AbstractConverter
      Converts the supplied object to text. The supplied object will always be an instance of the editor type, and specifically will never be null or a String (unless this is the String editor).
      Overrides:
      toStringImpl in class AbstractConverter
      Parameters:
      value - an instance of the editor type
      Returns:
      the text equivalent of the value
    • toObjectImpl

      protected Object toObjectImpl(String text)
      Description copied from class: AbstractConverter
      Converts the supplied text in to an instance of the editor type. The text will never be null, and trim() will already have been called.
      Specified by:
      toObjectImpl in class AbstractConverter
      Parameters:
      text - the text to convert
      Returns:
      an instance of the editor type