Java Doc for DOMConfigurationImpl.java in  » XML » xerces-2_9_1 » org » apache » xerces » dom » 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.dom 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.xerces.util.ParserConfigurationSettings
      org.apache.xerces.dom.DOMConfigurationImpl

DOMConfigurationImpl
public class DOMConfigurationImpl extends ParserConfigurationSettings implements XMLParserConfiguration,DOMConfiguration(Code)
Xerces implementation of DOMConfiguration that maintains a table of recognized parameters.
author:
   Elena Litani, IBM
author:
   Neeraj Bajaj, Sun Microsystems.
version:
   $Id: DOMConfigurationImpl.java 530107 2007-04-18 17:59:54Z mrglavas $


Field Summary
final protected static  StringBALANCE_SYNTAX_TREES
     Feature identifier: balance syntax trees.
final protected static  shortCDATA
    
final protected static  shortCOMMENTS
    
final protected static  StringDISALLOW_DOCTYPE_DECL_FEATURE
     Feature identifier: load external DTD.
final protected static  StringDTD_VALIDATOR_FACTORY_PROPERTY
     Property identifier: datatype validator factory.
final protected static  StringDTD_VALIDATOR_PROPERTY
     Property identifier: DTD validator.
final protected static  shortDTNORMALIZATION
    
final protected static  StringDYNAMIC_VALIDATION
    
final protected static  shortENTITIES
    
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  StringGENERATE_SYNTHETIC_ANNOTATIONS
    
final protected static  StringGRAMMAR_POOL
    
final protected static  StringHONOUR_ALL_SCHEMALOCATIONS
    
final protected static  shortINFOSET_FALSE_PARAMS
    
final protected static  shortINFOSET_MASK
    
final protected static  shortINFOSET_TRUE_PARAMS
    
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  shortNAMESPACES
    
final protected static  StringNORMALIZE_DATA
    
final protected static  shortNSDECL
    
final protected static  shortPSVI
    
final protected static  StringSCHEMA
    
final protected static  StringSCHEMA_ELEMENT_DEFAULT
    
final protected static  StringSCHEMA_FULL_CHECKING
    
final protected static  StringSCHEMA_LOCATION
     Property identifier: schema location.
final protected static  StringSCHEMA_NONS_LOCATION
     Property identifier: no namespace schema location.
final protected static  StringSEND_PSVI
    
final protected static  shortSPLITCDATA
    
final protected static  StringSYMBOL_TABLE
     Property identifier: symbol table.
final protected static  StringUSE_GRAMMAR_POOL_ONLY
    
final protected static  shortVALIDATE
    
final protected static  StringVALIDATE_ANNOTATIONS
    
final protected static  StringVALIDATION_MANAGER
    
final protected static  StringWARN_ON_DUPLICATE_ATTDEF
     Feature identifier: warn on duplicate attribute definition.
final protected static  shortWELLFORMED
    
final protected static  StringXERCES_NAMESPACES
     Feature identifier: namespaces.
final protected static  StringXERCES_VALIDATION
     Feature identifier: validation.
final protected static  StringXML11_DATATYPE_VALIDATOR_FACTORY
    
final protected static  StringXML_STRING
     Property identifier: xml string.
protected  ArrayListfComponents
     Components.
protected  DTDDVFactoryfCurrentDVFactory
     Current Datatype validator factory.
protected  DTDDVFactoryfDatatypeValidatorFactory
     The XML 1.0 Datatype validator factory.
 XMLDocumentHandlerfDocumentHandler
    
final protected  DOMErrorHandlerWrapperfErrorHandlerWrapper
    
protected  XMLErrorReporterfErrorReporter
    
protected  LocalefLocale
     Locale.
protected  SymbolTablefSymbolTable
     Symbol table.
protected  ValidationManagerfValidationManager
    
protected  DTDDVFactoryfXML11DatatypeFactory
     The XML 1.1 Datatype validator factory.
protected  shortfeatures
    

Constructor Summary
protected  DOMConfigurationImpl()
     Default Constructor.
protected  DOMConfigurationImpl(SymbolTable symbolTable)
     Constructs a parser configuration using the specified symbol table.
protected  DOMConfigurationImpl(SymbolTable symbolTable, XMLComponentManager parentSettings)
     Constructs a parser configuration using the specified symbol table and parent settings.

Method Summary
protected  voidaddComponent(XMLComponent component)
    
public  booleancanSetParameter(String name, Object value)
     DOM Level 3 WD - Experimental. Check if setting a parameter to a specific value is supported.
Parameters:
  name - The name of the parameter to check.
Parameters:
  value - An object.
protected  voidcheckProperty(String propertyId)
     Check a property.
protected  ValidationManagercreateValidationManager()
    
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  ObjectgetParameter(String name)
     DOM Level 3 WD - Experimental.
public  DOMStringListgetParameterNames()
     DOM Level 3 CR - Experimental. The list of the parameters supported by this DOMConfiguration object and for which at least one value can be set by the application.
public  voidparse(XMLInputSource inputSource)
     Parse an XML document.

The parser can use this method to instruct this configuration to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).

Parsers may not invoke this method while a parse is in progress. Once a parse is complete, the parser may then parse another XML document.

This method is synchronous: it will not return until parsing has ended.

protected  voidreset()
    
public  voidsetDTDContentModelHandler(XMLDTDContentModelHandler handler)
     Sets the DTD content model handler.
public  voidsetDTDHandler(XMLDTDHandler dtdHandler)
     Sets the DTD handler.
final protected  voidsetDTDValidatorFactory(String version)
    
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  voidsetLocale(Locale locale)
     Set the locale to use for messages.
public  voidsetParameter(String name, Object value)
     DOM Level 3 WD - Experimental.
public  voidsetProperty(String propertyId, Object value)
    

Field Detail
BALANCE_SYNTAX_TREES
final protected static String BALANCE_SYNTAX_TREES(Code)
Feature identifier: balance syntax trees.



CDATA
final protected static short CDATA(Code)



COMMENTS
final protected static short COMMENTS(Code)



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



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



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



DTNORMALIZATION
final protected static short DTNORMALIZATION(Code)



DYNAMIC_VALIDATION
final protected static String DYNAMIC_VALIDATION(Code)



ENTITIES
final protected static short ENTITIES(Code)



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.



GENERATE_SYNTHETIC_ANNOTATIONS
final protected static String GENERATE_SYNTHETIC_ANNOTATIONS(Code)
Feature: generate synthetic annotations



GRAMMAR_POOL
final protected static String GRAMMAR_POOL(Code)
Property id: Grammar pool



HONOUR_ALL_SCHEMALOCATIONS
final protected static String HONOUR_ALL_SCHEMALOCATIONS(Code)
Feature identifier: honour all schemaLocations



INFOSET_FALSE_PARAMS
final protected static short INFOSET_FALSE_PARAMS(Code)



INFOSET_MASK
final protected static short INFOSET_MASK(Code)



INFOSET_TRUE_PARAMS
final protected static short INFOSET_TRUE_PARAMS(Code)



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.



NAMESPACES
final protected static short NAMESPACES(Code)



NORMALIZE_DATA
final protected static String NORMALIZE_DATA(Code)



NSDECL
final protected static short NSDECL(Code)



PSVI
final protected static short PSVI(Code)



SCHEMA
final protected static String SCHEMA(Code)



SCHEMA_ELEMENT_DEFAULT
final protected static String SCHEMA_ELEMENT_DEFAULT(Code)
Feature identifier: send element default value via characters()



SCHEMA_FULL_CHECKING
final protected static String SCHEMA_FULL_CHECKING(Code)



SCHEMA_LOCATION
final protected static String SCHEMA_LOCATION(Code)
Property identifier: schema location.



SCHEMA_NONS_LOCATION
final protected static String SCHEMA_NONS_LOCATION(Code)
Property identifier: no namespace schema location.



SEND_PSVI
final protected static String SEND_PSVI(Code)
sending psvi in the pipeline



SPLITCDATA
final protected static short SPLITCDATA(Code)



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



USE_GRAMMAR_POOL_ONLY
final protected static String USE_GRAMMAR_POOL_ONLY(Code)
Feature identifier: use grammar pool only



VALIDATE
final protected static short VALIDATE(Code)



VALIDATE_ANNOTATIONS
final protected static String VALIDATE_ANNOTATIONS(Code)
Feature identifier: validate annotations



VALIDATION_MANAGER
final protected static String VALIDATION_MANAGER(Code)



WARN_ON_DUPLICATE_ATTDEF
final protected static String WARN_ON_DUPLICATE_ATTDEF(Code)
Feature identifier: warn on duplicate attribute definition.



WELLFORMED
final protected static short WELLFORMED(Code)



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



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



XML11_DATATYPE_VALIDATOR_FACTORY
final protected static String XML11_DATATYPE_VALIDATOR_FACTORY(Code)



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



fComponents
protected ArrayList fComponents(Code)
Components.



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



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



fDocumentHandler
XMLDocumentHandler fDocumentHandler(Code)



fErrorHandlerWrapper
final protected DOMErrorHandlerWrapper fErrorHandlerWrapper(Code)



fErrorReporter
protected XMLErrorReporter fErrorReporter(Code)
Error reporter



fLocale
protected Locale fLocale(Code)
Locale.



fSymbolTable
protected SymbolTable fSymbolTable(Code)
Symbol table.



fValidationManager
protected ValidationManager fValidationManager(Code)



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



features
protected short features(Code)
Normalization features




Constructor Detail
DOMConfigurationImpl
protected DOMConfigurationImpl()(Code)
Default Constructor.



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



DOMConfigurationImpl
protected DOMConfigurationImpl(SymbolTable symbolTable, XMLComponentManager parentSettings)(Code)
Constructs a parser configuration using the specified symbol table and parent settings.
Parameters:
  symbolTable - The symbol table to use.
Parameters:
  parentSettings - The parent settings.




Method Detail
addComponent
protected void addComponent(XMLComponent component)(Code)



canSetParameter
public boolean canSetParameter(String name, Object value)(Code)
DOM Level 3 WD - Experimental. Check if setting a parameter to a specific value is supported.
Parameters:
  name - The name of the parameter to check.
Parameters:
  value - An object. if null, the returned value is true. true if the parameter could be successfully set to thespecified value, or false if the parameter is not recognized orthe requested value is not supported. This does not change thecurrent value of the parameter itself.



checkProperty
protected void checkProperty(String propertyId) throws XMLConfigurationException(Code)
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 propertybeing set.
exception:
  org.apache.xerces.xni.parser.XMLConfigurationException - If therequested feature is not known or supported.



createValidationManager
protected ValidationManager createValidationManager()(Code)



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:   DOMConfigurationImpl.setEntityResolver



getErrorHandler
public XMLErrorHandler getErrorHandler()(Code)
Return the current error handler. The current error handler, or null if nonehas been registered.
See Also:   DOMConfigurationImpl.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.



getParameter
public Object getParameter(String name) throws DOMException(Code)
DOM Level 3 WD - Experimental. getParameter



getParameterNames
public DOMStringList getParameterNames()(Code)
DOM Level 3 CR - Experimental. The list of the parameters supported by this DOMConfiguration object and for which at least one value can be set by the application. Note that this list can also contain parameter names defined outside this specification.



parse
public void parse(XMLInputSource inputSource) throws XNIException, IOException(Code)
Parse an XML document.

The parser can use this method to instruct this configuration to begin parsing an XML document from any valid input source (a character stream, a byte stream, or a URI).

Parsers may not invoke this method while a parse is in progress. Once a parse is complete, the parser may then parse another XML document.

This method is synchronous: it will not return until parsing has ended. If a client application wants to terminate parsing early, it should throw an exception.
Parameters:
  inputSource - The input source for the top-level of theXML document.
exception:
  XNIException - Any XNI exception, possibly wrappinganother exception.
exception:
  IOException - An IO exception from the parser, possiblyfrom a byte stream or character streamsupplied by the parser.




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



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.



setDTDValidatorFactory
final protected void setDTDValidatorFactory(String version)(Code)



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 handlerargument is null.
See Also:   DOMConfigurationImpl.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.



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.



setParameter
public void setParameter(String name, Object value) throws DOMException(Code)
DOM Level 3 WD - Experimental. setParameter



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.