Package org.mule.metadata.raml.api.map
Class MapTypeLoader
- java.lang.Object
-
- org.mule.metadata.raml.api.map.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 obtainedMetadataTypefrom the RAML must be of only some valid field types, seeVALID_FIELD_TYPES- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description MapTypeLoader(File ramlFile)Constructs a CSV type loader from a RAML documentMapTypeLoader(String content, String ramlLocation)Constructs a CSV type loader from a RAML document
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<MetadataType>load(String typeIdentifier)Optional<MetadataType>load(String typeIdentifier, String typeAlias)
-
-
-
Constructor Detail
-
MapTypeLoader
public MapTypeLoader(File ramlFile)
Constructs a CSV type loader from a RAML document- Parameters:
ramlFile- file pointing to the RAML resource
-
-
Method Detail
-
load
public Optional<MetadataType> load(String typeIdentifier)
- Specified by:
loadin interfaceTypeLoader
-
load
public Optional<MetadataType> load(String typeIdentifier, String typeAlias)
- Specified by:
loadin interfaceTypeLoader
-
-