sandygao    2002/09/24 09:17:33

  Modified:    java/src/org/apache/xerces/parsers
                        IntegratedParserConfiguration.java
  Log:
  Add constructors to the new IntegratedParserConfiguration, so that it can
  be constructed in other ways: with a given symbol table, a given grammar
  pool, etc.
  
  Revision  Changes    Path
  1.4       +53 -1     
xml-xerces/java/src/org/apache/xerces/parsers/IntegratedParserConfiguration.java
  
  Index: IntegratedParserConfiguration.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/IntegratedParserConfiguration.java,v
  retrieving revision 1.3
  retrieving revision 1.4
  diff -u -r1.3 -r1.4
  --- IntegratedParserConfiguration.java        17 Sep 2002 15:04:45 -0000      1.3
  +++ IntegratedParserConfiguration.java        24 Sep 2002 16:17:33 -0000      1.4
  @@ -139,6 +139,58 @@
       /** DTD Validator that does not bind namespaces */
       protected XMLDTDValidator fNonNSDTDValidator;
       
  +    //
  +    // Constructors
  +    //
  +
  +    /** Default constructor. */
  +    public IntegratedParserConfiguration() {
  +        this(null, null, null);
  +    } // <init>()
  +
  +    /** 
  +     * Constructs a parser configuration using the specified symbol table. 
  +     *
  +     * @param symbolTable The symbol table to use.
  +     */
  +    public IntegratedParserConfiguration(SymbolTable symbolTable) {
  +        this(symbolTable, null, null);
  +    } // <init>(SymbolTable)
  +
  +    /**
  +     * Constructs a parser configuration 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 IntegratedParserConfiguration(SymbolTable symbolTable,
  +                                         XMLGrammarPool grammarPool) {
  +        this(symbolTable, grammarPool, null);
  +    } // <init>(SymbolTable,XMLGrammarPool)
  +
  +    /**
  +     * 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 IntegratedParserConfiguration(SymbolTable symbolTable,
  +                                         XMLGrammarPool grammarPool,
  +                                         XMLComponentManager parentSettings) {
  +        super(symbolTable, grammarPool, parentSettings);
  +    } // <init>(SymbolTable,XMLGrammarPool)
  +
       
       /** Configures the pipeline. */
       protected void configurePipeline() {
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to