KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > xerces > impl > dtd > XML11DTDProcessor


1 /*
2  * Copyright 1999-2002,2004 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.impl.dtd;
18
19 import org.apache.xerces.impl.XMLErrorReporter;
20 import org.apache.xerces.util.SymbolTable;
21 import org.apache.xerces.util.XML11Char;
22 import org.apache.xerces.xni.grammars.XMLGrammarPool;
23 import org.apache.xerces.xni.parser.XMLEntityResolver;
24
25
26 /**
27  * This class extends XMLDTDProcessor by giving it
28  * the ability to parse XML 1.1 documents correctly. It can also be used
29  * as a DTD loader, so that XML 1.1 external subsets can
30  * be processed correctly (hence it's rather anomalous-appearing
31  * derivation from XMLDTDLoader).
32  *
33  * @xerces.internal
34  *
35  * @author Neil Graham, IBM
36  *
37  * @version $Id: XML11DTDProcessor.java,v 1.4 2004/10/04 21:57:30 mrglavas Exp $
38  */

39 public class XML11DTDProcessor extends XMLDTDLoader{
40
41     // constructors
42

43     public XML11DTDProcessor() {
44         super();
45     } // <init>()
46

47     public XML11DTDProcessor(SymbolTable symbolTable) {
48         super(symbolTable);
49     } // init(SymbolTable)
50

51     public XML11DTDProcessor(SymbolTable symbolTable,
52                 XMLGrammarPool grammarPool) {
53         super(symbolTable, grammarPool);
54     } // init(SymbolTable, XMLGrammarPool)
55

56     XML11DTDProcessor(SymbolTable symbolTable,
57                 XMLGrammarPool grammarPool, XMLErrorReporter errorReporter,
58                 XMLEntityResolver entityResolver) {
59         super(symbolTable, grammarPool, errorReporter, entityResolver);
60     } // init(SymbolTable, XMLGrammarPool, XMLErrorReporter, XMLEntityResolver)
61

62     // overridden methods
63

64     protected boolean isValidNmtoken(String JavaDoc nmtoken) {
65         return XML11Char.isXML11ValidNmtoken(nmtoken);
66     } // isValidNmtoken(String): boolean
67

68     protected boolean isValidName(String JavaDoc name) {
69         return XML11Char.isXML11ValidName(name);
70     } // isValidNmtoken(String): boolean
71

72 } // class XML11DTDProcessor
73
Popular Tags