Interface XSGrammar

  • All Superinterfaces:
    Grammar
    All Known Implementing Classes:
    SchemaGrammar, SchemaGrammar.BuiltinSchemaGrammar, SchemaGrammar.Schema4Annotations

    public interface XSGrammar
    extends Grammar
    Representing a schema grammar. It contains declaration/definitions from a certain namespace. When a grammar is preparsed, and its grammar type is XML Schema, it can be casted to this interface. Objects of this interface can be converted to XSModel, from which further information about components in this grammar can be obtained.
    Version:
    $Id$
    Author:
    Sandy Gao, IBM
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      XSModel toXSModel()
      Return an XSModel that represents components in this schema grammar and any schema grammars that are imported by this grammar directly or indirectly.
      XSModel toXSModel​(XSGrammar[] grammars)
      Return an XSModel that represents components in this schema grammar and the grammars in the grammarsparameter, any schema grammars that are imported by them directly or indirectly.
    • Method Detail

      • toXSModel

        XSModel toXSModel()
        Return an XSModel that represents components in this schema grammar and any schema grammars that are imported by this grammar directly or indirectly.
        Returns:
        an XSModel representing this schema grammar
      • toXSModel

        XSModel toXSModel​(XSGrammar[] grammars)
        Return an XSModel that represents components in this schema grammar and the grammars in the grammarsparameter, any schema grammars that are imported by them directly or indirectly.
        Returns:
        an XSModel representing these schema grammars