public class JsonRamlTypeLoader extends Object implements TypeLoader
TypeLoader that takes the internal TypeDeclaration and transforms it into a MetadataType through
TypeDeclaration.toJsonSchema() in conjunction with JsonTypeLoader.
Supported fragments so far: RamlFragment.DataType and RamlFragment.Library, any other will fail while loading t
he RAML file| Constructor and Description |
|---|
JsonRamlTypeLoader(File ramlFile)
Constructs a RAML type loader
|
JsonRamlTypeLoader(String content,
String ramlLocation)
Constructs a RAML type loader
|
| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataType> |
load(String typeIdentifier) |
Optional<MetadataType> |
load(String typeIdentifier,
String typeAlias) |
public JsonRamlTypeLoader(File ramlFile)
ramlFile - file pointing to the RAML resourcepublic Optional<MetadataType> load(String typeIdentifier)
load in interface TypeLoaderpublic Optional<MetadataType> load(String typeIdentifier, String typeAlias)
load in interface TypeLoaderCopyright © 2018 MuleSoft, Inc.. All rights reserved.