Interface Converter<T,S>

Type Parameters:
T - Target object
S - Source object
All Superinterfaces:
Component<ConverterKey>, Keyed<ConverterKey>

public interface Converter<T,S> extends Component<ConverterKey>
Interface to convert an object into another object, e.g. SensorML 1.0.1 to SensorML 2.0
Since:
1.0.0
  • Method Summary

    Modifier and Type
    Method
    Description
    convert(S objectToConvert)
    Convert object to target

    Methods inherited from interface org.n52.janmayen.component.Keyed

    getKeys
  • Method Details

    • convert

      T convert(S objectToConvert) throws ConverterException
      Convert object to target
      Parameters:
      objectToConvert - Object to convert
      Returns:
      The converted object
      Throws:
      ConverterException - If an error occurs during the conversion