Class PathConverter

java.lang.Object
com.bc.ceres.binding.converters.PathConverter
All Implemented Interfaces:
Converter<Path>

public class PathConverter extends Object implements Converter<Path>
  • Constructor Details

    • PathConverter

      public PathConverter()
  • Method Details

    • getValueType

      public Class<Path> getValueType()
      Description copied from interface: Converter
      Gets the value type.
      Specified by:
      getValueType in interface Converter<Path>
      Returns:
      The value type.
    • parse

      public Path parse(String text)
      Description copied from interface: Converter
      Converts a value from its plain text representation to a Java object instance of the type returned by Converter.getValueType().
      Specified by:
      parse in interface Converter<Path>
      Parameters:
      text - The textual representation of the value.
      Returns:
      The converted value.
    • format

      public String format(Path value)
      Description copied from interface: Converter
      Converts a value of the type returned by Converter.getValueType() to its plain text representation.
      Specified by:
      format in interface Converter<Path>
      Parameters:
      value - The value to be converted to text.
      Returns:
      The textual representation of the value.