Class XMLSchemaGrammar

  • All Implemented Interfaces:
    Grammar, java.io.Serializable

    public class XMLSchemaGrammar
    extends java.lang.Object
    implements Grammar
    set of XML Schema. This set can be used to validate a document.
    See Also:
    Serialized Form
    • Field Detail

      • pool

        protected final ExpressionPool pool
        pool object which was used to construct this grammar.
      • schemata

        protected final java.util.Map schemata
        map from namespace URI to loaded XMLSchemaSchema object.
    • Constructor Detail

      • XMLSchemaGrammar

        public XMLSchemaGrammar()
    • Method Detail

      • getPool

        public final ExpressionPool getPool()
        Description copied from interface: Grammar
        gets ExpressionPool object which was used to construct this grammar. Never return null.
        Specified by:
        getPool in interface Grammar
      • getTopLevel

        public final Expression getTopLevel()
        Description copied from interface: Grammar
        gets top-level expression. This expression shall be the constraint over the document element. Never return null.
        Specified by:
        getTopLevel in interface Grammar
      • getByNamespace

        public XMLSchemaSchema getByNamespace​(java.lang.String targetNamesapce)
        gets XMLSchemaSchema object that has the given target namespace.
        Returns:
        null if no schema is associated with that namespace.
      • iterateSchemas

        public java.util.Iterator iterateSchemas()
        returns an Iterator that enumerates XMLSchemaSchema objects that are defined in this grammar.