com.ibm.ims.xms
Class XMSParserConfiguration

com.ibm.ims.xms.XMSParserConfiguration

public class XMSParserConfiguration

This parser configuration is used for the XMS XML validation and shredding for storage into IMS.

Author:
Christopher Holtz, IBM

Field Summary
protected  com.ibm.ims.xms.NamespaceSupport defaultNamespaceContext
          Default Namespace used by NamespaceBinder Component
protected  XMSEntityManager jEntityManager
          XMSEntityManager used by the configuration to builded the scanner
 
Constructor Summary
XMSParserConfiguration(org.apache.xerces.util.SymbolTable symbolTable, org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
          Constructor takes the symbol table and grammar pool to use.
 
Method Summary
protected  void checkProperty(java.lang.String propertyId)
          Check a property.
protected  void configurePipeline()
          Configures the pipeline.
protected  org.apache.xerces.xni.parser.XMLDocumentScanner createDocumentScanner()
          Create a document scanner.
protected  com.ibm.ims.xms.XMLEntityManager createEntityManager()
          Overrides creation of entity manager from DTDParserConfiguration.
protected  com.ibm.ims.xms.XMLNamespaceBinder createNamespaceBinder()
          Override creation of namespace binder from DTDParserConfiguration.
protected  void reset()
          Reset all components before parsing.
protected  void setDefaultNamespace(java.lang.String defaultNamespace)
          Sets the defaultNamespace used by the NamespaceBinder.
 

Field Detail

defaultNamespaceContext

protected com.ibm.ims.xms.NamespaceSupport defaultNamespaceContext
Default Namespace used by NamespaceBinder Component

jEntityManager

protected XMSEntityManager jEntityManager
XMSEntityManager used by the configuration to builded the scanner
Constructor Detail

XMSParserConfiguration

public XMSParserConfiguration(org.apache.xerces.util.SymbolTable symbolTable,
                              org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
Constructor takes the symbol table and grammar pool to use.
Method Detail

reset

protected void reset()
              throws org.apache.xerces.xni.XNIException
Reset all components before parsing.
Throws:
org.apache.xerces.xni.XNIException - Thrown if an error occurs during initialization.

configurePipeline

protected void configurePipeline()
Configures the pipeline.

createNamespaceBinder

protected com.ibm.ims.xms.XMLNamespaceBinder createNamespaceBinder()
Override creation of namespace binder from DTDParserConfiguration.

setDefaultNamespace

protected void setDefaultNamespace(java.lang.String defaultNamespace)
Sets the defaultNamespace used by the NamespaceBinder. Takes effect after a reset call.

createEntityManager

protected com.ibm.ims.xms.XMLEntityManager createEntityManager()
Overrides creation of entity manager from DTDParserConfiguration.

createDocumentScanner

protected org.apache.xerces.xni.parser.XMLDocumentScanner createDocumentScanner()
Create a document scanner.

checkProperty

protected void checkProperty(java.lang.String propertyId)
                      throws org.apache.xerces.xni.parser.XMLConfigurationException
Check a property. If the property is known and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
Parameters:
propertyId - The unique identifier (URI) of the property being set.
Throws:
XMLConfigurationException - Thrown for configuration error. In general, components should only throw this exception if it is really a critical error.


(C) International Business Machines Corporation 2004. All rights reserved.