java.lang.Object
java.lang.Enum<MapValueMapper>
org.jboss.arquillian.drone.configuration.mapping.MapValueMapper
All Implemented Interfaces:
Serializable, Comparable<MapValueMapper>, java.lang.constant.Constable, ValueMapper<Map<String,String>>

public enum MapValueMapper extends Enum<MapValueMapper> implements ValueMapper<Map<String,String>>
Mapper for Map<String, String>
Author:
Tomas Repel
  • Enum Constant Details

  • Method Details

    • values

      public static MapValueMapper[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MapValueMapper valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • handles

      public boolean handles(Class<?> type, Class<?>... parameters)
      Description copied from interface: ValueMapper
      Checks if given type is supported by this handler
      Specified by:
      handles in interface ValueMapper<Map<String,String>>
      Parameters:
      type - Type to be supported
      parameters - Types that have to match in case type is generic type
      Returns:
      true if this is supported, false otherwise
    • transform

      public Map<String,String> transform(String value) throws IllegalArgumentException
      It expects the string of format key=value,key1=value1,key2=value2.
      Specified by:
      transform in interface ValueMapper<Map<String,String>>
      Parameters:
      value - - the string to be parsed and transformed to Map.
      Returns:
      Converted object
      Throws:
      IllegalArgumentException - If conversion was not possible