Class MapTypeLoader

  • All Implemented Interfaces:
    TypeLoader

    public class MapTypeLoader
    extends Object
    implements TypeLoader
    Loader of a MAP (aka: dynamic object) from a RAML file with a few restrictions. The obtained MetadataType from the RAML must be of only some valid field types, see VALID_FIELD_TYPES
    Since:
    1.0
    • Constructor Detail

      • MapTypeLoader

        public MapTypeLoader​(File ramlFile)
        Constructs a CSV type loader from a RAML document
        Parameters:
        ramlFile - file pointing to the RAML resource
      • MapTypeLoader

        public MapTypeLoader​(String content,
                             String ramlLocation)
        Constructs a CSV type loader from a RAML document
        Parameters:
        content - content of the RAML resource
        ramlLocation - pointer to the RAML location