Class StringConverter.CodeList<T extends org.opengis.util.CodeList<T>>

All Implemented Interfaces:
Serializable, Function<String,T>, ObjectConverter<String,T>
Enclosing class:
StringConverter<T>

static final class StringConverter.CodeList<T extends org.opengis.util.CodeList<T>> extends StringConverter<T>
Converter from String to CodeList. This converter is particular in that it requires the target class in argument to the constructor.

Instances of this class are created by SystemRegistry.createConverter(Class, Class).

  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      For cross-version compatibility on serialization.
      See Also:
  • Constructor Details

    • CodeList

      CodeList(Class<T> targetClass)
      Creates a new converter for the given code list.
  • Method Details

    • doConvert

      T doConvert(String source)
      Converts the given string to the target type of this converter.
      Specified by:
      doConvert in class StringConverter<T extends org.opengis.util.CodeList<T>>
      Parameters:
      source - the string to convert, guaranteed to be non-null and non-empty.
      Returns:
      the converted value.
    • createInverse

      ObjectConverter<T,String> createInverse()
      Invoked by the constructor for creating the inverse converter.
      Overrides:
      createInverse in class StringConverter<T extends org.opengis.util.CodeList<T>>