KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > parsers > XMLGrammarParser


1 /*
2  * Copyright 1999-2005 The Apache Software Foundation.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */

16
17 package org.apache.xerces.parsers;
18
19 import org.apache.xerces.impl.Constants;
20 import org.apache.xerces.impl.dv.DTDDVFactory;
21 import org.apache.xerces.util.SymbolTable;
22 import org.apache.xerces.xni.parser.XMLParserConfiguration;
23
24 /**
25  * @version $Id: XMLGrammarParser.java,v 1.11 2005/05/04 04:23:46 mrglavas Exp $
26  */

27 public abstract class XMLGrammarParser
28     extends XMLParser {
29
30     //
31
// Data
32
//
33

34     /** fDatatypeValidatorFactory */
35     protected DTDDVFactory fDatatypeValidatorFactory;
36
37     //
38
// Constructors
39
//
40

41     /**
42      * Construct an XMLGrammarParser with the specified symbol table
43      *
44      * @param symbolTable
45      */

46     protected XMLGrammarParser(SymbolTable symbolTable) {
47         super((XMLParserConfiguration)ObjectFactory.createObject(
48             "org.apache.xerces.xni.parser.XMLParserConfiguration",
49             "org.apache.xerces.parsers.XIncludeAwareParserConfiguration"
50             ));
51         fConfiguration.setProperty(Constants.XERCES_PROPERTY_PREFIX+Constants.SYMBOL_TABLE_PROPERTY, symbolTable);
52     }
53
54 } // class XMLGrammarParser
55
Popular Tags