Class SchemaProviderImpl

  • All Implemented Interfaces:
    org.iso_relax.dispatcher.SchemaProvider

    public class SchemaProviderImpl
    extends org.iso_relax.dispatcher.impl.AbstractSchemaProviderImpl
    implementation of SchemaProvider by using RELAX Grammar.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private ExpressionPool pool
      shared expression pool.
      private DeclImpl[] topLevel  
      private Expression topLevelExp
      top-level expression as AGM.
      • Fields inherited from class org.iso_relax.dispatcher.impl.AbstractSchemaProviderImpl

        schemata
    • Constructor Summary

      Constructors 
      Constructor Description
      SchemaProviderImpl​(RELAXGrammar grammar)
      creates SchemaProvider from existing RELAXGrammar.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean bind​(org.xml.sax.ErrorHandler handler)
      binds all IslandSchemata.
      org.iso_relax.dispatcher.IslandVerifier createTopLevelVerifier()  
      static SchemaProviderImpl fromGrammar​(Grammar grammar)
      creates SchemaProvider from generic Grammar (including TREX/RELAX Core)
      • Methods inherited from class org.iso_relax.dispatcher.impl.AbstractSchemaProviderImpl

        addSchema, getSchemaByNamespace, getSchemata, iterateNamespace
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • topLevel

        private final DeclImpl[] topLevel
      • topLevelExp

        private final Expression topLevelExp
        top-level expression as AGM.
    • Constructor Detail

      • SchemaProviderImpl

        public SchemaProviderImpl​(RELAXGrammar grammar)
        creates SchemaProvider from existing RELAXGrammar. Since bind method is already called by RELAXNSReader, the application should not call bind method.
    • Method Detail

      • createTopLevelVerifier

        public org.iso_relax.dispatcher.IslandVerifier createTopLevelVerifier()
      • fromGrammar

        public static SchemaProviderImpl fromGrammar​(Grammar grammar)
        creates SchemaProvider from generic Grammar (including TREX/RELAX Core)
      • bind

        public boolean bind​(org.xml.sax.ErrorHandler handler)
        binds all IslandSchemata.