Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
Java Source Code for Xerces Java 2.11.2
Where Can I see Java Source Code files for Xerces Java 2.11.2?
✍: FYIcenter
Here are Java Source Code files for Xerces Java 2.11.2:
⏎ org/apache/xerces/impl/dtd/DTDGrammarBucket.java
/* * Licensed to the Apache Software Foundation (ASF) under one or more * contributor license agreements. See the NOTICE file distributed with * this work for additional information regarding copyright ownership. * The ASF licenses this file to You under the Apache License, Version 2.0 * (the "License"); you may not use this file except in compliance with * the License. You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ package org.apache.xerces.impl.dtd; import java.util.Hashtable; import org.apache.xerces.xni.grammars.XMLGrammarDescription; /** * This very simple class is the skeleton of what the DTDValidator could use * to store various grammars that it gets from the GrammarPool. As in the * case of XSGrammarBucket, one thinks of this object as being closely * associated with its validator; when fully mature, this class will be * filled from the GrammarPool when the DTDValidator is invoked on a * document, and, if a new DTD grammar is parsed, the new set will be * offered back to the GrammarPool for possible inclusion. * * @xerces.internal * * @author Neil Graham, IBM * * @version $Id: DTDGrammarBucket.java 699892 2008-09-28 21:08:27Z mrglavas $ */ public class DTDGrammarBucket { // REVISIT: make this class smarter and *way* more complete! // // Data // /** Grammars associated with element root name. */ protected final Hashtable fGrammars; // the unique grammar from fGrammars (or that we're // building) that is used in validation. protected DTDGrammar fActiveGrammar; // is the "active" grammar standalone? protected boolean fIsStandalone; // // Constructors // /** Default constructor. */ public DTDGrammarBucket() { fGrammars = new Hashtable(); } // <init>() // // Public methods // /** * Puts the specified grammar into the grammar pool and associate it to * a root element name (this being internal, the lack of generality is irrelevant). * * @param grammar The grammar. */ public void putGrammar(DTDGrammar grammar) { XMLDTDDescription desc = (XMLDTDDescription)grammar.getGrammarDescription(); fGrammars.put(desc, grammar); } // putGrammar(DTDGrammar) // retrieve a DTDGrammar given an XMLDTDDescription public DTDGrammar getGrammar(XMLGrammarDescription desc) { return (DTDGrammar)(fGrammars.get((XMLDTDDescription)desc)); } // putGrammar(DTDGrammar) public void clear() { fGrammars.clear(); fActiveGrammar = null; fIsStandalone = false; } // clear() // is the active grammar standalone? This must live here because // at the time the validator discovers this we don't yet know // what the active grammar should be (no info about root) void setStandalone(boolean standalone) { fIsStandalone = standalone; } boolean getStandalone() { return fIsStandalone; } // set the "active" grammar: void setActiveGrammar (DTDGrammar grammar) { fActiveGrammar = grammar; } DTDGrammar getActiveGrammar () { return fActiveGrammar; } } // class DTDGrammarBucket
⏎ org/apache/xerces/impl/dtd/DTDGrammarBucket.java
Or download all of them as a single archive file:
File name: Xerces-J.2.12.2-src.zip File size: 2128351 bytes Release date: 2022-01-21 Download
⇒ Donwload Xerces-J-bin.2.11.0.zip
⇐ What Is in Xerces-J-bin.2.12.2.zip
2016-09-15, 57546👍, 1💬
Popular Posts:
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
Where Can I see Java Source Code files for Xerces Java 2.11.2? Here are Java Source Code files for X...
Apache BCEL Source Code Files are inside the Apache BCEL source package file like bcel-6.5.0-src.zip...
Provides support for the runtime platform, core utility methods and the extension registry. JAR File...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...