Java Doc for XML11DTDConfiguration.java in  » XML » xerces-2_9_1 » org » apache » xerces » parsers » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » XML » xerces 2_9_1 » org.apache.xerces.parsers 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.util.ParserConfigurationSettings
      org.apache.xerces.parsers.XML11DTDConfiguration

XML11DTDConfiguration
public class XML11DTDConfiguration extends ParserConfigurationSettings implements XMLPullParserConfiguration,XML11Configurable(Code)
This class is the DTD-only parser configuration used to parse XML 1.0 and XML 1.1 documents.

This class recognizes the following features and properties:

  • Features
    • http://xml.org/sax/features/validation
    • http://xml.org/sax/features/namespaces
    • http://xml.org/sax/features/external-general-entities
    • http://xml.org/sax/features/external-parameter-entities
    • http://apache.org/xml/features/continue-after-fatal-error
    • http://apache.org/xml/features/load-external-dtd
  • Properties
    • http://xml.org/sax/properties/xml-string
    • http://apache.org/xml/properties/internal/symbol-table
    • http://apache.org/xml/properties/internal/error-handler
    • http://apache.org/xml/properties/internal/entity-resolver
    • http://apache.org/xml/properties/internal/error-reporter
    • http://apache.org/xml/properties/internal/entity-manager
    • http://apache.org/xml/properties/internal/document-scanner
    • http://apache.org/xml/properties/internal/dtd-scanner
    • http://apache.org/xml/properties/internal/grammar-pool
    • http://apache.org/xml/properties/internal/validator/dtd
    • http://apache.org/xml/properties/internal/datatype-validator-factory

author:
   Elena Litani, IBM
author:
   Neil Graham, IBM
author:
   Michael Glavassevich, IBM
author:
   John Kim, IBM
version:
   $Id: XML11DTDConfiguration.java 447239 2006-09-18 05:08:26Z mrglavas $


Field Summary
final protected static  StringCONTINUE_AFTER_FATAL_ERROR
     Feature identifier: continue after fatal error.
final protected static  StringDATATYPE_VALIDATOR_FACTORY
     Property identifier: datatype validator factory.
final protected static  StringDOCUMENT_SCANNER
    
final protected static  StringDTD_PROCESSOR
     Property identifier: DTD loader.
final protected static  StringDTD_SCANNER
     Property identifier: DTD scanner.
final protected static  StringDTD_VALIDATOR
     Property identifier: DTD validator.
final protected static  StringENTITY_MANAGER
     Property identifier: entity manager.
final protected static  StringENTITY_RESOLVER
     Property identifier: entity resolver.
final protected static  StringERROR_HANDLER
     Property identifier: error handler.
final protected static  StringERROR_REPORTER
     Property identifier: error reporter.
final protected static  StringEXTERNAL_GENERAL_ENTITIES
     Feature identifier: external general entities.
final protected static  StringEXTERNAL_PARAMETER_ENTITIES
     Feature identifier: external parameter entities.
final protected static  StringJAXP_SCHEMA_LANGUAGE
     Property identifier: JAXP schema language / DOM schema-type.
final protected static  StringJAXP_SCHEMA_SOURCE
     Property identifier: JAXP schema source/ DOM schema-location.
final protected static  StringLOAD_EXTERNAL_DTD
     Feature identifier: load external DTD.
final protected static  StringNAMESPACES
     Feature identifier: namespaces.
final protected static  StringNAMESPACE_BINDER
     Property identifier: namespace binder.
final protected static  booleanPRINT_EXCEPTION_STACK_TRACE
     Set to true and recompile to print exception stack trace.
final protected static  StringSYMBOL_TABLE
     Property identifier: symbol table.
final protected static  StringVALIDATION
     Feature identifier: validation.
final protected static  StringVALIDATION_MANAGER
    
final protected static  StringXML11_DATATYPE_VALIDATOR_FACTORY
    
final protected static  StringXMLGRAMMAR_POOL
     Property identifier: grammar pool.
final protected static  StringXML_STRING
     Property identifier: xml string.
protected  ArrayListfCommonComponents
    
protected  ArrayListfComponents
     XML 1.0 Components.
protected  booleanfConfigUpdated
     fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.
protected  XMLDTDScannerfCurrentDTDScanner
     Current DTD scanner.
protected  DTDDVFactoryfCurrentDVFactory
     Current Datatype validator factory.
protected  XMLDocumentScannerfCurrentScanner
    
protected  XMLDTDContentModelHandlerfDTDContentModelHandler
     The DTD content model handler.
protected  XMLDTDHandlerfDTDHandler
     The DTD handler.
protected  XMLDTDProcessorfDTDProcessor
     The XML 1.0 DTD Processor .
protected  XMLDTDScannerfDTDScanner
     The XML 1.0 DTD scanner.
protected  XMLDTDValidatorfDTDValidator
    
protected  DTDDVFactoryfDatatypeValidatorFactory
     The XML 1.0 Datatype validator factory.
protected  XMLDocumentHandlerfDocumentHandler
     The document handler.
protected  XMLEntityManagerfEntityManager
     Entity manager.
protected  XMLErrorReporterfErrorReporter
     Error reporter.
protected  XMLGrammarPoolfGrammarPool
     Grammar pool.
protected  XMLInputSourcefInputSource
    
protected  XMLDocumentSourcefLastComponent
    
protected  LocalefLocale
    
protected  XMLLocatorfLocator
    
protected  XMLNSDocumentScannerImplfNamespaceScanner
     The XML 1.0 Document scanner that does namespace binding.
protected  XMLDTDValidatorfNonNSDTDValidator
    
protected  XMLDocumentScannerImplfNonNSScanner
    
protected  booleanfParseInProgress
     True if a parse is in progress.
protected  SymbolTablefSymbolTable
    
protected  ValidationManagerfValidationManager
    
protected  XMLVersionDetectorfVersionDetector
    
protected  ArrayListfXML11Components
     XML 1.1.
protected  XML11DTDProcessorfXML11DTDProcessor
     The XML 1.1 DTD processor.
protected  XML11DTDScannerImplfXML11DTDScanner
     The XML 1.1 DTD scanner.
protected  XML11DTDValidatorfXML11DTDValidator
     The XML 1.1 DTD validator that does not do namespace binding.
protected  DTDDVFactoryfXML11DatatypeFactory
     The XML 1.1 datatype factory.
protected  XML11DocumentScannerImplfXML11DocScanner
     The XML 1.1 document scanner that does not do namespace binding.
protected  XML11NSDTDValidatorfXML11NSDTDValidator
     The XML 1.1 DTD validator that does namespace binding.
protected  XML11NSDocumentScannerImplfXML11NSDocScanner
     The XML 1.1 document scanner that does namespace binding.

Constructor Summary
public  XML11DTDConfiguration()
     Default constructor.
public  XML11DTDConfiguration(SymbolTable symbolTable)
     Constructs a parser configuration using the specified symbol table.
public  XML11DTDConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
     Constructs a parser configuration using the specified symbol table and grammar pool.
public  XML11DTDConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)
     Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

Method Summary
protected  voidaddCommonComponent(XMLComponent component)
     Adds common component to the parser configuration.
protected  voidaddComponent(XMLComponent component)
     Adds a component to the parser configuration.
protected  voidaddRecognizedParamsAndSetDefaults(XMLComponent component)
     Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.
protected  voidaddXML11Component(XMLComponent component)
     Adds an XML 1.1 component to the parser configuration.
protected  voidcheckFeature(String featureId)
     Check a feature.
protected  voidcheckProperty(String propertyId)
     Check a property.
public  voidcleanup()
     If the application decides to terminate parsing before the xml document is fully parsed, the application should call this method to free any resource allocated during parsing.
protected  voidconfigurePipeline()
     Configures the pipeline.
protected  voidconfigureXML11Pipeline()
     Configures the XML 1.1 pipeline.
public  XMLDTDContentModelHandlergetDTDContentModelHandler()
     Returns the registered DTD content model handler.
public  XMLDTDHandlergetDTDHandler()
     Returns the registered DTD handler.
public  XMLDocumentHandlergetDocumentHandler()
     Returns the registered document handler.
public  XMLEntityResolvergetEntityResolver()
     Return the current entity resolver.
public  XMLErrorHandlergetErrorHandler()
     Return the current error handler.
public  booleangetFeature(String featureId)
     Returns the state of a feature.
Parameters:
  featureId - The feature identifier.
public  LocalegetLocale()
     Returns the locale.
public  voidparse(XMLInputSource source)
     Parses the specified input source.
public  booleanparse(boolean complete)
    
protected  voidreset()
    
protected  voidresetCommon()
    
protected  voidresetXML11()
    
public  voidsetDTDContentModelHandler(XMLDTDContentModelHandler handler)
     Sets the DTD content model handler.
public  voidsetDTDHandler(XMLDTDHandler dtdHandler)
     Sets the DTD handler.
public  voidsetDocumentHandler(XMLDocumentHandler documentHandler)
     Sets the document handler on the last component in the pipeline to receive information about the document.
public  voidsetEntityResolver(XMLEntityResolver resolver)
     Sets the resolver used to resolve external entities.
public  voidsetErrorHandler(XMLErrorHandler errorHandler)
     Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue.

public  voidsetFeature(String featureId, boolean state)
     Set the state of a feature. Set the state of any feature in a SAX2 parser.
public  voidsetInputSource(XMLInputSource inputSource)
     Sets the input source for the document to parse.
public  voidsetLocale(Locale locale)
     Set the locale to use for messages.
public  voidsetProperty(String propertyId, Object value)
    

Field Detail
CONTINUE_AFTER_FATAL_ERROR
final protected static String CONTINUE_AFTER_FATAL_ERROR(Code)
Feature identifier: continue after fatal error.



DATATYPE_VALIDATOR_FACTORY
final protected static String DATATYPE_VALIDATOR_FACTORY(Code)
Property identifier: datatype validator factory.



DOCUMENT_SCANNER
final protected static String DOCUMENT_SCANNER(Code)
Property identifier document scanner:



DTD_PROCESSOR
final protected static String DTD_PROCESSOR(Code)
Property identifier: DTD loader.



DTD_SCANNER
final protected static String DTD_SCANNER(Code)
Property identifier: DTD scanner.



DTD_VALIDATOR
final protected static String DTD_VALIDATOR(Code)
Property identifier: DTD validator.



ENTITY_MANAGER
final protected static String ENTITY_MANAGER(Code)
Property identifier: entity manager.



ENTITY_RESOLVER
final protected static String ENTITY_RESOLVER(Code)
Property identifier: entity resolver.



ERROR_HANDLER
final protected static String ERROR_HANDLER(Code)
Property identifier: error handler.



ERROR_REPORTER
final protected static String ERROR_REPORTER(Code)
Property identifier: error reporter.



EXTERNAL_GENERAL_ENTITIES
final protected static String EXTERNAL_GENERAL_ENTITIES(Code)
Feature identifier: external general entities.



EXTERNAL_PARAMETER_ENTITIES
final protected static String EXTERNAL_PARAMETER_ENTITIES(Code)
Feature identifier: external parameter entities.



JAXP_SCHEMA_LANGUAGE
final protected static String JAXP_SCHEMA_LANGUAGE(Code)
Property identifier: JAXP schema language / DOM schema-type.



JAXP_SCHEMA_SOURCE
final protected static String JAXP_SCHEMA_SOURCE(Code)
Property identifier: JAXP schema source/ DOM schema-location.



LOAD_EXTERNAL_DTD
final protected static String LOAD_EXTERNAL_DTD(Code)
Feature identifier: load external DTD.



NAMESPACES
final protected static String NAMESPACES(Code)
Feature identifier: namespaces.



NAMESPACE_BINDER
final protected static String NAMESPACE_BINDER(Code)
Property identifier: namespace binder.



PRINT_EXCEPTION_STACK_TRACE
final protected static boolean PRINT_EXCEPTION_STACK_TRACE(Code)
Set to true and recompile to print exception stack trace.



SYMBOL_TABLE
final protected static String SYMBOL_TABLE(Code)
Property identifier: symbol table.



VALIDATION
final protected static String VALIDATION(Code)
Feature identifier: validation.



VALIDATION_MANAGER
final protected static String VALIDATION_MANAGER(Code)



XML11_DATATYPE_VALIDATOR_FACTORY
final protected static String XML11_DATATYPE_VALIDATOR_FACTORY(Code)



XMLGRAMMAR_POOL
final protected static String XMLGRAMMAR_POOL(Code)
Property identifier: grammar pool.



XML_STRING
final protected static String XML_STRING(Code)
Property identifier: xml string.



fCommonComponents
protected ArrayList fCommonComponents(Code)
Common components: XMLEntityManager, XMLErrorReporter



fComponents
protected ArrayList fComponents(Code)
XML 1.0 Components.



fConfigUpdated
protected boolean fConfigUpdated(Code)
fConfigUpdated is set to true if there has been any change to the configuration settings, i.e a feature or a property was changed.



fCurrentDTDScanner
protected XMLDTDScanner fCurrentDTDScanner(Code)
Current DTD scanner.



fCurrentDVFactory
protected DTDDVFactory fCurrentDVFactory(Code)
Current Datatype validator factory.



fCurrentScanner
protected XMLDocumentScanner fCurrentScanner(Code)
Current scanner



fDTDContentModelHandler
protected XMLDTDContentModelHandler fDTDContentModelHandler(Code)
The DTD content model handler.



fDTDHandler
protected XMLDTDHandler fDTDHandler(Code)
The DTD handler.



fDTDProcessor
protected XMLDTDProcessor fDTDProcessor(Code)
The XML 1.0 DTD Processor .



fDTDScanner
protected XMLDTDScanner fDTDScanner(Code)
The XML 1.0 DTD scanner.



fDTDValidator
protected XMLDTDValidator fDTDValidator(Code)
The XML 1.0 DTD Validator: binds namespaces



fDatatypeValidatorFactory
protected DTDDVFactory fDatatypeValidatorFactory(Code)
The XML 1.0 Datatype validator factory.



fDocumentHandler
protected XMLDocumentHandler fDocumentHandler(Code)
The document handler.



fEntityManager
protected XMLEntityManager fEntityManager(Code)
Entity manager.



fErrorReporter
protected XMLErrorReporter fErrorReporter(Code)
Error reporter.



fGrammarPool
protected XMLGrammarPool fGrammarPool(Code)
Grammar pool.



fInputSource
protected XMLInputSource fInputSource(Code)



fLastComponent
protected XMLDocumentSource fLastComponent(Code)
Last component in the document pipeline



fLocale
protected Locale fLocale(Code)



fLocator
protected XMLLocator fLocator(Code)



fNamespaceScanner
protected XMLNSDocumentScannerImpl fNamespaceScanner(Code)
The XML 1.0 Document scanner that does namespace binding.



fNonNSDTDValidator
protected XMLDTDValidator fNonNSDTDValidator(Code)
The XML 1.0 DTD Validator that does not bind namespaces



fNonNSScanner
protected XMLDocumentScannerImpl fNonNSScanner(Code)
The XML 1.0 Non-namespace implementation of scanner



fParseInProgress
protected boolean fParseInProgress(Code)
True if a parse is in progress. This state is needed because some features/properties cannot be set while parsing (e.g. validation and namespaces).



fSymbolTable
protected SymbolTable fSymbolTable(Code)



fValidationManager
protected ValidationManager fValidationManager(Code)



fVersionDetector
protected XMLVersionDetector fVersionDetector(Code)



fXML11Components
protected ArrayList fXML11Components(Code)
XML 1.1. Components.



fXML11DTDProcessor
protected XML11DTDProcessor fXML11DTDProcessor(Code)
The XML 1.1 DTD processor. *



fXML11DTDScanner
protected XML11DTDScannerImpl fXML11DTDScanner(Code)
The XML 1.1 DTD scanner. *



fXML11DTDValidator
protected XML11DTDValidator fXML11DTDValidator(Code)
The XML 1.1 DTD validator that does not do namespace binding. *



fXML11DatatypeFactory
protected DTDDVFactory fXML11DatatypeFactory(Code)
The XML 1.1 datatype factory. *



fXML11DocScanner
protected XML11DocumentScannerImpl fXML11DocScanner(Code)
The XML 1.1 document scanner that does not do namespace binding. *



fXML11NSDTDValidator
protected XML11NSDTDValidator fXML11NSDTDValidator(Code)
The XML 1.1 DTD validator that does namespace binding. *



fXML11NSDocScanner
protected XML11NSDocumentScannerImpl fXML11NSDocScanner(Code)
The XML 1.1 document scanner that does namespace binding. *




Constructor Detail
XML11DTDConfiguration
public XML11DTDConfiguration()(Code)
Default constructor.



XML11DTDConfiguration
public XML11DTDConfiguration(SymbolTable symbolTable)(Code)
Constructs a parser configuration using the specified symbol table.
Parameters:
  symbolTable - The symbol table to use.



XML11DTDConfiguration
public XML11DTDConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)(Code)
Constructs a parser configuration using the specified symbol table and grammar pool.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.
Parameters:
  symbolTable - The symbol table to use.
Parameters:
  grammarPool - The grammar pool to use.




XML11DTDConfiguration
public XML11DTDConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings)(Code)
Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings.

REVISIT: Grammar pool will be updated when the new validation engine is implemented.
Parameters:
  symbolTable - The symbol table to use.
Parameters:
  grammarPool - The grammar pool to use.
Parameters:
  parentSettings - The parent settings.





Method Detail
addCommonComponent
protected void addCommonComponent(XMLComponent component)(Code)
Adds common component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.
Parameters:
  component - The component to add.



addComponent
protected void addComponent(XMLComponent component)(Code)
Adds a component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.
Parameters:
  component - The component to add.



addRecognizedParamsAndSetDefaults
protected void addRecognizedParamsAndSetDefaults(XMLComponent component)(Code)
Adds all of the component's recognized features and properties to the list of default recognized features and properties, and sets default values on the configuration for features and properties which were previously absent from the configuration.
Parameters:
  component - The component whose recognized featuresand properties will be added to the configuration



addXML11Component
protected void addXML11Component(XMLComponent component)(Code)
Adds an XML 1.1 component to the parser configuration. This method will also add all of the component's recognized features and properties to the list of default recognized features and properties.
Parameters:
  component - The component to add.



checkFeature
protected void checkFeature(String featureId) throws XMLConfigurationException(Code)
Check a feature. If feature is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
Parameters:
  featureId - The unique identifier (URI) of the feature.
throws:
  XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.



checkProperty
protected void checkProperty(String propertyId) throws XMLConfigurationException(Code)
Check a property. If the property is know and supported, this method simply returns. Otherwise, the appropriate exception is thrown.
Parameters:
  propertyId - The unique identifier (URI) of the propertybeing set.
throws:
  XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.



cleanup
public void cleanup()(Code)
If the application decides to terminate parsing before the xml document is fully parsed, the application should call this method to free any resource allocated during parsing. For example, close all opened streams.



configurePipeline
protected void configurePipeline()(Code)
Configures the pipeline.



configureXML11Pipeline
protected void configureXML11Pipeline()(Code)
Configures the XML 1.1 pipeline. Note: this method also resets the new XML11 components.



getDTDContentModelHandler
public XMLDTDContentModelHandler getDTDContentModelHandler()(Code)
Returns the registered DTD content model handler.



getDTDHandler
public XMLDTDHandler getDTDHandler()(Code)
Returns the registered DTD handler.



getDocumentHandler
public XMLDocumentHandler getDocumentHandler()(Code)
Returns the registered document handler.



getEntityResolver
public XMLEntityResolver getEntityResolver()(Code)
Return the current entity resolver. The current entity resolver, or null if nonehas been registered.
See Also:   XML11DTDConfiguration.setEntityResolver



getErrorHandler
public XMLErrorHandler getErrorHandler()(Code)
Return the current error handler. The current error handler, or null if nonehas been registered.
See Also:   XML11DTDConfiguration.setErrorHandler



getFeature
public boolean getFeature(String featureId) throws XMLConfigurationException(Code)
Returns the state of a feature.
Parameters:
  featureId - The feature identifier. true if the feature is supported
throws:
  XMLConfigurationException - Thrown for configuration error.In general, components shouldonly throw this exception ifit is reallya critical error.



getLocale
public Locale getLocale()(Code)
Returns the locale.



parse
public void parse(XMLInputSource source) throws XNIException, IOException(Code)
Parses the specified input source.
Parameters:
  source - The input source.
exception:
  XNIException - Throws exception on XNI error.
exception:
  java.io.IOException - Throws exception on i/o error.



parse
public boolean parse(boolean complete) throws XNIException, IOException(Code)



reset
protected void reset() throws XNIException(Code)
reset all XML 1.0 components before parsing and namespace context



resetCommon
protected void resetCommon() throws XNIException(Code)
reset all common components before parsing



resetXML11
protected void resetXML11() throws XNIException(Code)
reset all components before parsing and namespace context



setDTDContentModelHandler
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler)(Code)
Sets the DTD content model handler.
Parameters:
  handler - The DTD content model handler.



setDTDHandler
public void setDTDHandler(XMLDTDHandler dtdHandler)(Code)
Sets the DTD handler.
Parameters:
  dtdHandler - The DTD handler.



setDocumentHandler
public void setDocumentHandler(XMLDocumentHandler documentHandler)(Code)
Sets the document handler on the last component in the pipeline to receive information about the document.
Parameters:
  documentHandler - The document handler.



setEntityResolver
public void setEntityResolver(XMLEntityResolver resolver)(Code)
Sets the resolver used to resolve external entities. The EntityResolver interface supports resolution of public and system identifiers.
Parameters:
  resolver - The new entity resolver. Passing a null value willuninstall the currently installed resolver.



setErrorHandler
public void setErrorHandler(XMLErrorHandler errorHandler)(Code)
Allow an application to register an error event handler.

If the application does not register an error handler, all error events reported by the SAX parser will be silently ignored; however, normal processing may not continue. It is highly recommended that all SAX applications implement an error handler to avoid unexpected bugs.

Applications may register a new or different handler in the middle of a parse, and the SAX parser must begin using the new handler immediately.


Parameters:
  errorHandler - The error handler.
exception:
  java.lang.NullPointerException - If the handler argument is null.
See Also:   XML11DTDConfiguration.getErrorHandler



setFeature
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)
Set the state of a feature. Set the state of any feature in a SAX2 parser. The parser might not recognize the feature, and if it does recognize it, it might not be able to fulfill the request.
Parameters:
  featureId - The unique identifier (URI) of the feature.
Parameters:
  state - The requested state of the feature (true or false).
exception:
  org.apache.xerces.xni.parser.XMLConfigurationException - If therequested feature is not known.



setInputSource
public void setInputSource(XMLInputSource inputSource) throws XMLConfigurationException, IOException(Code)
Sets the input source for the document to parse.
Parameters:
  inputSource - The document's input source.
exception:
  XMLConfigurationException - Thrown if there is a configuration error when initializing theparser.
exception:
  IOException - Thrown on I/O error.
See Also:   XML11DTDConfiguration.parse(boolean)



setLocale
public void setLocale(Locale locale) throws XNIException(Code)
Set the locale to use for messages.
Parameters:
  locale - The locale object to use for localization of messages.
exception:
  XNIException - Thrown if the parser does not support thespecified locale.



setProperty
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)
setProperty
Parameters:
  propertyId -
Parameters:
  value -



Fields inherited from org.apache.xerces.util.ParserConfigurationSettings
final protected static String PARSER_SETTINGS(Code)(Java Doc)
protected HashMap fFeatures(Code)(Java Doc)
protected XMLComponentManager fParentSettings(Code)(Java Doc)
protected HashMap fProperties(Code)(Java Doc)
protected ArrayList fRecognizedFeatures(Code)(Java Doc)
protected ArrayList fRecognizedProperties(Code)(Java Doc)

Methods inherited from org.apache.xerces.util.ParserConfigurationSettings
public void addRecognizedFeatures(String[] featureIds)(Code)(Java Doc)
public void addRecognizedProperties(String[] propertyIds)(Code)(Java Doc)
protected void checkFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc)
protected void checkProperty(String propertyId) throws XMLConfigurationException(Code)(Java Doc)
public boolean getFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc)
public Object getProperty(String propertyId) throws XMLConfigurationException(Code)(Java Doc)
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc)
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.