@PublicApi public class SchemaParser extends java.lang.Object
TypeDefinitionRegistry
of
definitions ready to be placed into SchemaGenerator
sayConstructor and Description |
---|
SchemaParser() |
Modifier and Type | Method and Description |
---|---|
TypeDefinitionRegistry |
buildRegistry(Document document)
special method to build directly a TypeDefinitionRegistry from a Document
useful for Introspection => IDL (Document) => TypeDefinitionRegistry
|
TypeDefinitionRegistry |
parse(java.io.File file)
Parse a file of schema definitions and create a
TypeDefinitionRegistry |
TypeDefinitionRegistry |
parse(java.io.InputStream inputStream)
Parse a inputStream of schema definitions and create a
TypeDefinitionRegistry |
TypeDefinitionRegistry |
parse(java.io.Reader reader)
Parse a reader of schema definitions and create a
TypeDefinitionRegistry |
TypeDefinitionRegistry |
parse(java.io.Reader reader,
ParserOptions parserOptions)
Parse a reader of schema definitions and create a
TypeDefinitionRegistry |
TypeDefinitionRegistry |
parse(java.lang.String schemaInput)
Parse a string of schema definitions and create a
TypeDefinitionRegistry |
TypeDefinitionRegistry |
parseImpl(java.io.Reader schemaInput) |
public TypeDefinitionRegistry parse(java.io.File file) throws SchemaProblem
TypeDefinitionRegistry
file
- the file to parseSchemaProblem
- if there are problems compiling the schema definitionspublic TypeDefinitionRegistry parse(java.io.InputStream inputStream) throws SchemaProblem
TypeDefinitionRegistry
inputStream
- the inputStream to parseSchemaProblem
- if there are problems compiling the schema definitionspublic TypeDefinitionRegistry parse(java.io.Reader reader) throws SchemaProblem
TypeDefinitionRegistry
reader
- the reader to parseSchemaProblem
- if there are problems compiling the schema definitionspublic TypeDefinitionRegistry parse(java.io.Reader reader, ParserOptions parserOptions) throws SchemaProblem
TypeDefinitionRegistry
reader
- the reader to parseparserOptions
- the parse options to use while parsingSchemaProblem
- if there are problems compiling the schema definitionspublic TypeDefinitionRegistry parse(java.lang.String schemaInput) throws SchemaProblem
TypeDefinitionRegistry
schemaInput
- the schema string to parseSchemaProblem
- if there are problems compiling the schema definitionspublic TypeDefinitionRegistry parseImpl(java.io.Reader schemaInput)
public TypeDefinitionRegistry buildRegistry(Document document)
document
- containing type definitionsSchemaProblem
- if an error occurs