Author: mrglavas
Date: Mon May 22 15:25:09 2006
New Revision: 408773
URL: http://svn.apache.org/viewvc?rev=408773&view=rev
Log:
Allow PSVIConfiguration to be used with XML 1.1 documents.
Modified:
xerces/java/trunk/samples/xni/parser/PSVIConfiguration.java
Modified: xerces/java/trunk/samples/xni/parser/PSVIConfiguration.java
URL:
http://svn.apache.org/viewvc/xerces/java/trunk/samples/xni/parser/PSVIConfiguration.java?rev=408773&r1=408772&r2=408773&view=diff
==============================================================================
--- xerces/java/trunk/samples/xni/parser/PSVIConfiguration.java (original)
+++ xerces/java/trunk/samples/xni/parser/PSVIConfiguration.java Mon May 22
15:25:09 2006
@@ -1,5 +1,5 @@
/*
- * Copyright 2001,2002,2004,2005 The Apache Software Foundation.
+ * Copyright 2001,2002,2004-2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -33,8 +33,7 @@
*/
public class PSVIConfiguration extends XIncludeAwareParserConfiguration {
-
- /** PSVI Writer */
+ /** PSVI Writer */
protected PSVIWriter fPSVIWriter;
//
@@ -90,27 +89,33 @@
XMLGrammarPool grammarPool,
XMLComponentManager parentSettings) {
super(symbolTable, grammarPool, parentSettings);
-
fPSVIWriter = createPSVIWriter();
if (fPSVIWriter != null) {
- addComponent(fPSVIWriter);
+ addCommonComponent(fPSVIWriter);
}
} // <init>(SymbolTable,XMLGrammarPool)
-
/** Configures the pipeline. */
protected void configurePipeline() {
-
super.configurePipeline();
+ addPSVIWriterToPipeline();
+ } // configurePipeline()
+
+ /** Configures the XML 1.1 pipeline. */
+ protected void configureXML11Pipeline() {
+ super.configureXML11Pipeline();
+ addPSVIWriterToPipeline();
+ } // configureXML11Pipeline()
+
+ /** Adds PSVI writer to the pipeline. */
+ protected void addPSVIWriterToPipeline() {
if (fSchemaValidator != null) {
fSchemaValidator.setDocumentHandler(fPSVIWriter);
fPSVIWriter.setDocumentHandler(fDocumentHandler);
fPSVIWriter.setDocumentSource(fSchemaValidator);
}
-
- } // configurePipeline()
-
+ } // addPSVIWriterToPipeline()
/** Create a PSVIWriter */
protected PSVIWriter createPSVIWriter(){
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]