public class JsonExampleTypeLoader extends Object implements TypeLoader
Constructor and Description |
---|
JsonExampleTypeLoader(File exampleFile) |
JsonExampleTypeLoader(String example) |
Modifier and Type | Method and Description |
---|---|
Optional<MetadataType> |
load(String typeIdentifier)
Returns the MetadataType of the specified identifier if found
|
Optional<MetadataType> |
load(String typeIdentifier,
String typeAlias)
Returns the MetadataType of the specified identifier if found, optionally assigning specified type alias
|
public JsonExampleTypeLoader(File exampleFile)
public JsonExampleTypeLoader(String example)
public Optional<MetadataType> load(String typeIdentifier)
TypeLoader
load
in interface TypeLoader
typeIdentifier
- The identifier namepublic Optional<MetadataType> load(String typeIdentifier, String typeAlias)
TypeLoader
load
in interface TypeLoader
typeIdentifier
- The identifier nametypeAlias
- The nullable type aliasCopyright © 2018. All rights reserved.