Package org.mule.metadata.raml.api
Class XmlRamlTypeLoader
- java.lang.Object
-
- org.mule.metadata.raml.api.XmlRamlTypeLoader
-
- All Implemented Interfaces:
TypeLoader
public class XmlRamlTypeLoader extends Object implements TypeLoader
RAMLTypeLoaderthat takes the internalTypeDeclarationand transforms it into aMetadataTypethroughTypeDeclaration.toXmlSchema()in conjunction withXmlTypeLoader. Supported fragments so far:RamlFragment.DataTypeandRamlFragment.Library, any other will fail while loading t he RAML file- Since:
- 1.0
-
-
Constructor Summary
Constructors Constructor Description XmlRamlTypeLoader(File ramlFile)Constructs a RAML type loaderXmlRamlTypeLoader(String content, String ramlLocation)Constructs a RAML type loader
-
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
-
XmlRamlTypeLoader
public XmlRamlTypeLoader(File ramlFile)
Constructs a RAML type loader- 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
-
-