Interface Converter


  • public interface Converter
    yaml/json parser abstraction.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object convert​(java.lang.String api)
      converts a source (json/yaml) document into a java object tree.
    • Method Detail

      • convert

        java.lang.Object convert​(java.lang.String api)
                          throws ConverterException
        converts a source (json/yaml) document into a java object tree. The tree structure is based on Map<String, Object>. The root may not be a Map if the document just contains a single value.
        Parameters:
        api - a json/yaml document.
        Returns:
        object tree of the document.
        Throws:
        ConverterException - if conversion fails.