You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/11/02 02:26:45 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/parsers DTDXSParserConfiguration.java

andyc       01/11/01 17:26:45

  Modified:    java/docs releases.xml
               java/src/org/apache/xerces/parsers
                        DTDXSParserConfiguration.java
  Log:
  Added missing constructor to DTD/XS parser configuration.
  
  Revision  Changes    Path
  1.83      +14 -0     xml-xerces/java/docs/releases.xml
  
  Index: releases.xml
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/docs/releases.xml,v
  retrieving revision 1.82
  retrieving revision 1.83
  diff -u -r1.82 -r1.83
  --- releases.xml	2001/10/25 21:01:58	1.82
  +++ releases.xml	2001/11/02 01:26:44	1.83
  @@ -1,6 +1,20 @@
   <?xml version='1.0' encoding='UTF-8'?>
  +<!-- $Id: releases.xml,v 1.83 2001/11/02 01:26:44 andyc Exp $ -->
   <!DOCTYPE releases SYSTEM 'dtd/releases.dtd'>
   <releases>
  + <release version='Xerces 2.0.0 (NOT YET RELEASED)'>
  +  <desc>
  +  </desc>
  +  <changes>
  +   <fix>
  +    <note>
  +     Added constructor to new DTDXSParserConfiguration so it can
  +     share settings from a parent configuration.
  +    </note>
  +    <submitter name='Andy Clark'/>
  +   </fix>
  +  </changes>
  + </release>
    <release version='Xerces 2.0.0 (beta3)'>
     <desc>
      This release fixes a number of bugs, introduces some changes to
  
  
  
  1.3       +30 -2     xml-xerces/java/src/org/apache/xerces/parsers/DTDXSParserConfiguration.java
  
  Index: DTDXSParserConfiguration.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/DTDXSParserConfiguration.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- DTDXSParserConfiguration.java	2001/10/25 20:36:05	1.2
  +++ DTDXSParserConfiguration.java	2001/11/02 01:26:45	1.3
  @@ -63,6 +63,7 @@
   import org.apache.xerces.impl.validation.GrammarPool;
   import org.apache.xerces.parsers.StandardParserConfiguration;
   import org.apache.xerces.util.SymbolTable;
  +import org.apache.xerces.xni.parser.XMLComponentManager;
   
   /**
    * This is the DTD/ XML Schema parser configuration. It extends the standard
  @@ -71,7 +72,7 @@
    * instance document against schema.
    * 
    * @author Sandy Gao, IBM
  - * @version $Id: DTDXSParserConfiguration.java,v 1.2 2001/10/25 20:36:05 elena Exp $
  + * @version $Id: DTDXSParserConfiguration.java,v 1.3 2001/11/02 01:26:45 andyc Exp $
    */
   public class DTDXSParserConfiguration extends StandardParserConfiguration {
   
  @@ -96,6 +97,8 @@
   
       /**
        * Constructs a document parser using the specified symbol table.
  +     *
  +     * @param symbolTable    The symbol table to use.
        */
       public DTDXSParserConfiguration(SymbolTable symbolTable) {
           this(symbolTable, null);
  @@ -104,10 +107,35 @@
       /**
        * Constructs a document parser using the specified symbol table and
        * grammar pool.
  +     * <p>
  +     * <strong>REVISIT:</strong> 
  +     * Grammar pool will be updated when the new validation engine is
  +     * implemented.
  +     *
  +     * @param symbolTable    The symbol table to use.
  +     * @param grammarPool    The grammar pool to use.
        */
       public DTDXSParserConfiguration(SymbolTable symbolTable,
                                        GrammarPool grammarPool) {
  -        super(symbolTable, grammarPool);
  +        this(symbolTable, grammarPool, null);
  +    } // <init>(SymbolTable,GrammarPool)
  +
  +    /**
  +     * Constructs a parser configuration using the specified symbol table,
  +     * grammar pool, and parent settings.
  +     * <p>
  +     * <strong>REVISIT:</strong> 
  +     * Grammar pool will be updated when the new validation engine is
  +     * implemented.
  +     *
  +     * @param symbolTable    The symbol table to use.
  +     * @param grammarPool    The grammar pool to use.
  +     * @param parentSettings The parent settings.
  +     */
  +    public DTDXSParserConfiguration(SymbolTable symbolTable,
  +                                    GrammarPool grammarPool,
  +                                    XMLComponentManager parentSettings) {
  +        super(symbolTable, grammarPool, parentSettings);
   
           fSchemaValidator = createSchemaValidator();
           if (fSchemaValidator != null) {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org