You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by ne...@apache.org on 2001/10/01 18:17:10 UTC
cvs commit: xml-xerces/java/samples/xni/parser AbstractConfiguration.java
neilg 01/10/01 09:17:10
Modified: java/src/org/apache/xerces/parsers
BasicParserConfiguration.java
StandardParserConfiguration.java
java/samples/xni/parser AbstractConfiguration.java
Log:
fix from Henry Zongaro for build problems resulting from addition of getter methods to the ParserConfiguration classes.
Revision Changes Path
1.5 +18 -1 xml-xerces/java/src/org/apache/xerces/parsers/BasicParserConfiguration.java
Index: BasicParserConfiguration.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/BasicParserConfiguration.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- BasicParserConfiguration.java 2001/10/01 08:54:49 1.4
+++ BasicParserConfiguration.java 2001/10/01 16:17:09 1.5
@@ -130,7 +130,7 @@
* @author Arnaud Le Hors, IBM
* @author Andy Clark, IBM
*
- * @version $Id: BasicParserConfiguration.java,v 1.4 2001/10/01 08:54:49 andyc Exp $
+ * @version $Id: BasicParserConfiguration.java,v 1.5 2001/10/01 16:17:09 neilg Exp $
*/
public abstract class BasicParserConfiguration
extends ParserConfigurationSettings
@@ -322,14 +322,26 @@
fDocumentHandler = handler;
}
+ public XMLDocumentHandler getDocumentHandler() {
+ return fDocumentHandler;
+ }
+
public void setDTDHandler(XMLDTDHandler handler) {
fDTDHandler = handler;
}
+ public XMLDTDHandler getDTDHandler() {
+ return fDTDHandler;
+ }
+
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler) {
fDTDContentModelHandler = handler;
}
+ public XMLDTDContentModelHandler getDTDContentModelHandler() {
+ return fDTDContentModelHandler;
+ }
+
/**
* Sets the resolver used to resolve external entities. The EntityResolver
* interface supports resolution of public and system identifiers.
@@ -450,6 +462,11 @@
public void setLocale(Locale locale) throws XNIException {
fLocale = locale;
} // setLocale(Locale)
+
+ /** Returns the locale. */
+ public Locale getLocale() {
+ return fLocale;
+ } // getLocale():Locale
//
// Protected methods
1.4 +2 -1 xml-xerces/java/src/org/apache/xerces/parsers/StandardParserConfiguration.java
Index: StandardParserConfiguration.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/StandardParserConfiguration.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- StandardParserConfiguration.java 2001/10/01 08:54:49 1.3
+++ StandardParserConfiguration.java 2001/10/01 16:17:09 1.4
@@ -117,7 +117,7 @@
* @author Arnaud Le Hors, IBM
* @author Andy Clark, IBM
*
- * @version $Id: StandardParserConfiguration.java,v 1.3 2001/10/01 08:54:49 andyc Exp $
+ * @version $Id: StandardParserConfiguration.java,v 1.4 2001/10/01 16:17:09 neilg Exp $
*/
public class StandardParserConfiguration
extends BasicParserConfiguration
@@ -271,6 +271,7 @@
*/
public StandardParserConfiguration(SymbolTable symbolTable,
GrammarPool grammarPool) {
+ this(symbolTable, grammarPool, null);
} // <init>(SymbolTable,GrammarPool)
/**
* Constructs a parser configuration using the specified symbol table,
1.3 +35 -4 xml-xerces/java/samples/xni/parser/AbstractConfiguration.java
Index: AbstractConfiguration.java
===================================================================
RCS file: /home/cvs/xml-xerces/java/samples/xni/parser/AbstractConfiguration.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- AbstractConfiguration.java 2001/08/23 00:35:19 1.2
+++ AbstractConfiguration.java 2001/10/01 16:17:10 1.3
@@ -93,7 +93,7 @@
*
* @author Andy Clark, IBM
*
- * @version $Id: AbstractConfiguration.java,v 1.2 2001/08/23 00:35:19 lehors Exp $
+ * @version $Id: AbstractConfiguration.java,v 1.3 2001/10/01 16:17:10 neilg Exp $
*/
public abstract class AbstractConfiguration
implements XMLParserConfiguration {
@@ -277,6 +277,11 @@
fEntityResolver = resolver;
} // setEntityResolver(XMLEntityResolver)
+ /** Returns the registered entity resolver. */
+ public XMLEntityResolver getEntityResolver() {
+ return fEntityResolver;
+ } // getEntityResolver():XMLEntityResolver
+
/**
* Sets the error handler.
*
@@ -285,7 +290,12 @@
public void setErrorHandler(XMLErrorHandler handler) {
fErrorHandler = handler;
} // setErrorHandler(XMLErrorHandler)
-
+
+ /** Returns the registered error handler. */
+ public XMLErrorHandler getErrorHandler() {
+ return fErrorHandler;
+ } // getErrorHandler():XMLErrorHandler
+
/**
* Sets the document handler to receive information about the document.
*
@@ -295,6 +305,11 @@
fDocumentHandler = handler;
} // setDocumentHandler(XMLDocumentHandler)
+ /** Returns the registered document handler. */
+ public XMLDocumentHandler getDocumentHandler() {
+ return fDocumentHandler;
+ } // getDocumentHandler():XMLDocumentHandler
+
/**
* Sets the DTD handler.
*
@@ -304,6 +319,11 @@
fDTDHandler = handler;
} // setDTDHandler(XMLDTDHandler)
+ /** Returns the registered DTD handler. */
+ public XMLDTDHandler getDTDHandler() {
+ return fDTDHandler;
+ } // getDTDHandler():XMLDTDHandler
+
/**
* Sets the DTD content model handler.
*
@@ -312,7 +332,12 @@
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler) {
fDTDContentModelHandler = handler;
} // setDTDContentModelHandler(XMLDTDContentModelHandler)
-
+
+ /** Returns the registered DTD content model handler. */
+ public XMLDTDContentModelHandler getDTDContentModelHandler() {
+ return fDTDContentModelHandler;
+ } // getDTDContentModelHandler():XMLDTDContentModelHandler
+
/**
* Parse an XML document.
* <p>
@@ -354,7 +379,13 @@
public void setLocale(Locale locale) {
fLocale = locale;
} // setLocale(Locale)
-
+
+
+ /** Returns the locale. */
+ public Locale getLocale() {
+ return fLocale;
+ } // getLocale():Locale
+
//
// Protected methods
//
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org