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


org.apache.xerces.parsers.BasicParserConfiguration
   org.apache.xerces.impl.xs.opti.SchemaParsingConfig

SchemaParsingConfig
public class SchemaParsingConfig extends BasicParserConfiguration implements XMLPullParserConfiguration(Code)

author:
   Rahul Srivastava, Sun Microsystems Inc.
version:
   $Id: SchemaParsingConfig.java 467849 2006-10-26 03:16:00Z mrglavas $


Field Summary
final protected static  StringALLOW_JAVA_ENCODINGS
     Feature identifier: allow Java encodings.
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_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  StringERROR_REPORTER
     Property identifier: error reporter.
final protected static  StringGENERATE_SYNTHETIC_ANNOTATIONS
     Feature identifier: generate synthetic annotations.
final protected static  StringLOAD_EXTERNAL_DTD
     Feature identifier: load external DTD.
final protected static  StringNAMESPACE_BINDER
     Property identifier: namespace binder.
final protected static  StringNORMALIZE_DATA
    
final protected static  StringNOTIFY_BUILTIN_REFS
     Feature identifier: notify built-in refereces.
final protected static  StringNOTIFY_CHAR_REFS
     Feature identifier: notify character refereces.
final protected static  StringSCHEMA_ELEMENT_DEFAULT
    
final protected static  StringSCHEMA_VALIDATOR
     Property identifier: XML Schema validator.
final protected static  StringVALIDATION_MANAGER
    
final protected static  StringWARN_ON_DUPLICATE_ATTDEF
     Feature identifier: warn on duplicate attribute definition.
final protected static  StringWARN_ON_UNDECLARED_ELEMDEF
     Feature identifier: warn on undeclared element definition.
final protected static  StringXML11_DATATYPE_VALIDATOR_FACTORY
    
final protected static  StringXMLGRAMMAR_POOL
     Property identifier: grammar pool.
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
    
final protected  XMLDTDScannerImplfDTDScanner
     The XML 1.0 DTD scanner.
final protected  DTDDVFactoryfDatatypeValidatorFactory
     The XML 1.0 Datatype validator factory.
final protected  XMLEntityManagerfEntityManager
     Entity manager.
final protected  XMLErrorReporterfErrorReporter
     Error reporter.
protected  XMLGrammarPoolfGrammarPool
     Grammar pool.
protected  XMLInputSourcefInputSource
    
protected  XMLLocatorfLocator
    
final protected  XMLNSDocumentScannerImplfNamespaceScanner
     The XML 1.0 Document scanner.
protected  booleanfParseInProgress
     True if a parse is in progress.
protected  SchemaDOMParserfSchemaDOMParser
    
final protected  ValidationManagerfValidationManager
    
final protected  XMLVersionDetectorfVersionDetector
     XML version detector.
protected  XML11DTDScannerImplfXML11DTDScanner
     The XML 1.1 DTD scanner.
protected  DTDDVFactoryfXML11DatatypeFactory
     The XML 1.1 Datatype validator factory.
protected  XML11NSDocumentScannerImplfXML11NSDocScanner
     The XML 1.1 Document scanner.

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

Method Summary
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 XML 1.0 pipeline.
protected  voidconfigureXML11Pipeline()
     Configures the XML 1.1 pipeline.
public  DocumentgetDocument()
     Returns the Document object.
public  booleangetFeature(String featureId)
     Returns the state of a feature.
Parameters:
  featureId - The feature identifier.
public  booleanparse(boolean complete)
     Parses the document in a pull parsing fashion.
Parameters:
  complete - True if the pull parser should parse theremaining document completely.
public  voidparse(XMLInputSource source)
     Parses the specified input source.
public  voidreset()
     Reset all components before parsing.
public  voidresetNodePool()
    
final protected  voidresetXML10()
    
final protected  voidresetXML11()
    
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
ALLOW_JAVA_ENCODINGS
final protected static String ALLOW_JAVA_ENCODINGS(Code)
Feature identifier: allow Java encodings.



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_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.



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 identifier: generate synthetic annotations.



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



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



NORMALIZE_DATA
final protected static String NORMALIZE_DATA(Code)
Feature identifier: expose schema normalized value



NOTIFY_BUILTIN_REFS
final protected static String NOTIFY_BUILTIN_REFS(Code)
Feature identifier: notify built-in refereces.



NOTIFY_CHAR_REFS
final protected static String NOTIFY_CHAR_REFS(Code)
Feature identifier: notify character refereces.



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



SCHEMA_VALIDATOR
final protected static String SCHEMA_VALIDATOR(Code)
Property identifier: XML Schema validator.



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.



WARN_ON_UNDECLARED_ELEMDEF
final protected static String WARN_ON_UNDECLARED_ELEMDEF(Code)
Feature identifier: warn on undeclared element definition.



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.



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



fDTDScanner
final protected XMLDTDScannerImpl fDTDScanner(Code)
The XML 1.0 DTD scanner.



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



fEntityManager
final protected XMLEntityManager fEntityManager(Code)
Entity manager.



fErrorReporter
final protected XMLErrorReporter fErrorReporter(Code)
Error reporter.



fGrammarPool
protected XMLGrammarPool fGrammarPool(Code)
Grammar pool.



fInputSource
protected XMLInputSource fInputSource(Code)
Input Source



fLocator
protected XMLLocator fLocator(Code)
Locator



fNamespaceScanner
final protected XMLNSDocumentScannerImpl fNamespaceScanner(Code)
The XML 1.0 Document 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).



fSchemaDOMParser
protected SchemaDOMParser fSchemaDOMParser(Code)



fValidationManager
final protected ValidationManager fValidationManager(Code)



fVersionDetector
final protected XMLVersionDetector fVersionDetector(Code)
XML version detector.



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



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



fXML11NSDocScanner
protected XML11NSDocumentScannerImpl fXML11NSDocScanner(Code)
The XML 1.1 Document scanner.




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



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



SchemaParsingConfig
public SchemaParsingConfig(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.




SchemaParsingConfig
public SchemaParsingConfig(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
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 XML 1.0 pipeline.



configureXML11Pipeline
protected void configureXML11Pipeline()(Code)
Configures the XML 1.1 pipeline.



getDocument
public Document getDocument()(Code)
Returns the Document object.



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.



parse
public boolean parse(boolean complete) throws XNIException, IOException(Code)
Parses the document in a pull parsing fashion.
Parameters:
  complete - True if the pull parser should parse theremaining document completely. True if there is more document to parse.
exception:
  XNIException - Any XNI exception, possibly wrapping another exception.
exception:
  IOException - An IO exception from the parser, possiblyfrom a byte stream or character streamsupplied by the parser.
See Also:   SchemaParsingConfig.setInputSource



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.



reset
public void reset() throws XNIException(Code)
Reset all components before parsing.
throws:
  XNIException - Thrown if an error occurs during initialization.



resetNodePool
public void resetNodePool()(Code)



resetXML10
final protected void resetXML10() throws XNIException(Code)
Reset all XML 1.0 components before parsing



resetXML11
final protected void resetXML11() throws XNIException(Code)
Reset all XML 1.1 components before parsing



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:   SchemaParsingConfig.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.parsers.BasicParserConfiguration
final protected static String ENTITY_RESOLVER(Code)(Java Doc)
final protected static String ERROR_HANDLER(Code)(Java Doc)
final protected static String EXTERNAL_GENERAL_ENTITIES(Code)(Java Doc)
final protected static String EXTERNAL_PARAMETER_ENTITIES(Code)(Java Doc)
final protected static String NAMESPACES(Code)(Java Doc)
final protected static String SYMBOL_TABLE(Code)(Java Doc)
final protected static String VALIDATION(Code)(Java Doc)
final protected static String XML_STRING(Code)(Java Doc)
protected ArrayList fComponents(Code)(Java Doc)
protected XMLDTDContentModelHandler fDTDContentModelHandler(Code)(Java Doc)
protected XMLDTDHandler fDTDHandler(Code)(Java Doc)
protected XMLDocumentHandler fDocumentHandler(Code)(Java Doc)
protected XMLDocumentSource fLastComponent(Code)(Java Doc)
protected Locale fLocale(Code)(Java Doc)
protected SymbolTable fSymbolTable(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.BasicParserConfiguration
protected void addComponent(XMLComponent component)(Code)(Java Doc)
protected void checkFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc)
protected void checkProperty(String propertyId) throws XMLConfigurationException(Code)(Java Doc)
public XMLDTDContentModelHandler getDTDContentModelHandler()(Code)(Java Doc)
public XMLDTDHandler getDTDHandler()(Code)(Java Doc)
public XMLDocumentHandler getDocumentHandler()(Code)(Java Doc)
public XMLEntityResolver getEntityResolver()(Code)(Java Doc)
public XMLErrorHandler getErrorHandler()(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
abstract public void parse(XMLInputSource inputSource) throws XNIException, IOException(Code)(Java Doc)
protected void reset() throws XNIException(Code)(Java Doc)
public void setDTDContentModelHandler(XMLDTDContentModelHandler handler)(Code)(Java Doc)
public void setDTDHandler(XMLDTDHandler dtdHandler)(Code)(Java Doc)
public void setDocumentHandler(XMLDocumentHandler documentHandler)(Code)(Java Doc)
public void setEntityResolver(XMLEntityResolver resolver)(Code)(Java Doc)
public void setErrorHandler(XMLErrorHandler errorHandler)(Code)(Java Doc)
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc)
public void setLocale(Locale locale) throws XNIException(Code)(Java Doc)
public void setProperty(String propertyId, Object value) throws XMLConfigurationException(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.