public class RamlTypeLoader extends Object implements TypeLoader
TypeLoader that takes the type from it and transforms it into a MetadataType.
Supported fragments so far: RamlFragment.DataType and RamlFragment.Library, any other will fail while loading t
he RAML file| Constructor and Description |
|---|
RamlTypeLoader(File ramlFile,
TypeDeclarationTypeLoader typeDeclarationTypeLoader) |
RamlTypeLoader(String content,
String ramlLocation,
TypeDeclarationTypeLoader typeDeclarationTypeLoader) |
| Modifier and Type | Method and Description |
|---|---|
Optional<MetadataType> |
load(String typeIdentifier) |
Optional<MetadataType> |
load(String typeIdentifier,
String typeAlias) |
public RamlTypeLoader(File ramlFile, TypeDeclarationTypeLoader typeDeclarationTypeLoader)
public RamlTypeLoader(String content, String ramlLocation, TypeDeclarationTypeLoader typeDeclarationTypeLoader)
public Optional<MetadataType> load(String typeIdentifier)
load in interface TypeLoaderpublic Optional<MetadataType> load(String typeIdentifier, String typeAlias)
load in interface TypeLoaderCopyright © 2021 MuleSoft, Inc.. All rights reserved.