Class SchemaParser

    • Constructor Detail

      • SchemaParser

        public SchemaParser()
    • Method Detail

      • parse

        public TypeDefinitionRegistry parse​(java.io.Reader reader,
                                            @Nullable ParserOptions parserOptions)
                                     throws SchemaProblem
        Parse a reader of schema definitions and create a TypeDefinitionRegistry
        Parameters:
        reader - the reader to parse
        parserOptions - the parse options to use while parsing
        Returns:
        registry of type definitions
        Throws:
        SchemaProblem - if there are problems compiling the schema definitions
      • buildRegistry

        public TypeDefinitionRegistry buildRegistry​(Document document)
        special method to build directly a TypeDefinitionRegistry from a Document useful for Introspection => IDL (Document) => TypeDefinitionRegistry
        Parameters:
        document - containing type definitions
        Returns:
        the TypeDefinitionRegistry containing all type definitions from the document
        Throws:
        SchemaProblem - if an error occurs