public class JsonTypeLoader extends Object implements TypeLoader
Modifier and Type | Field and Description |
---|---|
static MetadataFormat |
JSON |
Constructor and Description |
---|
JsonTypeLoader(File schemaFile) |
JsonTypeLoader(String schemaData) |
JsonTypeLoader(String schemaData,
URI baseURI) |
Modifier and Type | Method and Description |
---|---|
Optional<MetadataType> |
load(String identifier)
Returns the MetadataType of the specified identifier if found
|
Optional<MetadataType> |
load(String identifier,
String typeAlias)
Returns the MetadataType of the specified identifier if found, optionally assigning specified type alias
|
public static MetadataFormat JSON
public JsonTypeLoader(File schemaFile)
public JsonTypeLoader(String schemaData)
public Optional<MetadataType> load(String identifier)
TypeLoader
load
in interface TypeLoader
identifier
- The identifier namepublic Optional<MetadataType> load(String identifier, String typeAlias)
TypeLoader
load
in interface TypeLoader
identifier
- The identifier nametypeAlias
- The nullable type aliasCopyright © 2018. All rights reserved.