Java Doc for XMLGrammarCachingConfiguration.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) 


org.apache.xerces.parsers.XML11Configuration
   org.apache.xerces.parsers.XIncludeAwareParserConfiguration
      org.apache.xerces.parsers.XMLGrammarCachingConfiguration

XMLGrammarCachingConfiguration
public class XMLGrammarCachingConfiguration extends XIncludeAwareParserConfiguration (Code)

This configuration provides a generic way of using Xerces's grammar caching facilities. It extends the XIncludeAwareParserConfiguration and thus may validate documents according to XML schemas or DTD's. It also allows the user to preparse a grammar, and to lock the grammar pool implementation such that no more grammars will be added.

Using the org.apache.xerces.xni.parser property, an application may instantiate a Xerces SAX or DOM parser with this configuration. When invoked in this manner, the default behaviour will be elicited; to use this configuration's specific facilities, the user will need to reference it directly.

In addition to the features and properties recognized by the base parser configuration, this class recognizes these additional features and properties:


author:
   Neil Graham, IBM
version:
   $Id: XMLGrammarCachingConfiguration.java 447239 2006-09-18 05:08:26Z mrglavas $


Field Summary
final public static  intBIG_PRIME
    
final protected static  StringSCHEMA_FULL_CHECKING
    
protected  XMLDTDLoaderfDTDLoader
    
protected  XMLSchemaLoaderfSchemaLoader
    
final protected static  XMLGrammarPoolImplfStaticGrammarPool
    
final protected static  SynchronizedSymbolTablefStaticSymbolTable
    

Constructor Summary
public  XMLGrammarCachingConfiguration()
     Default constructor.
public  XMLGrammarCachingConfiguration(SymbolTable symbolTable)
     Constructs a parser configuration using the specified symbol table.
public  XMLGrammarCachingConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool)
     Constructs a parser configuration using the specified symbol table and grammar pool.
public  XMLGrammarCachingConfiguration(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  voidclearGrammarPool()
    
public  voidlockGrammarPool()
    
 DTDGrammarparseDTD(XMLInputSource is)
    
public  GrammarparseGrammar(String type, String uri)
     Parse a grammar from a location identified by an URI.
public  GrammarparseGrammar(String type, XMLInputSource is)
     Parse a grammar from a location identified by an XMLInputSource.
 SchemaGrammarparseXMLSchema(XMLInputSource is)
    
public  voidunlockGrammarPool()
    

Field Detail
BIG_PRIME
final public static int BIG_PRIME(Code)



SCHEMA_FULL_CHECKING
final protected static String SCHEMA_FULL_CHECKING(Code)



fDTDLoader
protected XMLDTDLoader fDTDLoader(Code)



fSchemaLoader
protected XMLSchemaLoader fSchemaLoader(Code)



fStaticGrammarPool
final protected static XMLGrammarPoolImpl fStaticGrammarPool(Code)



fStaticSymbolTable
final protected static SynchronizedSymbolTable fStaticSymbolTable(Code)




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



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



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




XMLGrammarCachingConfiguration
public XMLGrammarCachingConfiguration(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 known 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 known 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.



clearGrammarPool
public void clearGrammarPool()(Code)



lockGrammarPool
public void lockGrammarPool()(Code)



parseDTD
DTDGrammar parseDTD(XMLInputSource is) throws IOException(Code)



parseGrammar
public Grammar parseGrammar(String type, String uri) throws XNIException, IOException(Code)
Parse a grammar from a location identified by an URI. This method also adds this grammar to the XMLGrammarPool
Parameters:
  type - The type of the grammar to be constructed
Parameters:
  uri - The location of the grammar to be constructed.The parser will not expand this URI or make itavailable to the EntityResolver The newly created Grammar.
exception:
  XNIException - thrown on an error in grammarconstruction
exception:
  IOException - thrown if an error is encounteredin reading the file



parseGrammar
public Grammar parseGrammar(String type, XMLInputSource is) throws XNIException, IOException(Code)
Parse a grammar from a location identified by an XMLInputSource. This method also adds this grammar to the XMLGrammarPool
Parameters:
  type - The type of the grammar to be constructed
Parameters:
  is - The XMLInputSource containing this grammar'sinformationIf a URI is included in the systemId field, the parser will not expand this URI or make itavailable to the EntityResolver The newly created Grammar.
exception:
  XNIException - thrown on an error in grammarconstruction
exception:
  IOException - thrown if an error is encounteredin reading the file



parseXMLSchema
SchemaGrammar parseXMLSchema(XMLInputSource is) throws IOException(Code)



unlockGrammarPool
public void unlockGrammarPool()(Code)



Fields inherited from org.apache.xerces.parsers.XIncludeAwareParserConfiguration
final protected static String ALLOW_UE_AND_NOTATION_EVENTS(Code)(Java Doc)
final protected static String NAMESPACE_CONTEXT(Code)(Java Doc)
final protected static String XINCLUDE_FEATURE(Code)(Java Doc)
final protected static String XINCLUDE_FIXUP_BASE_URIS(Code)(Java Doc)
final protected static String XINCLUDE_FIXUP_LANGUAGE(Code)(Java Doc)
final protected static String XINCLUDE_HANDLER(Code)(Java Doc)
protected NamespaceContext fCurrentNSContext(Code)(Java Doc)
protected NamespaceSupport fNonXIncludeNSContext(Code)(Java Doc)
protected boolean fXIncludeEnabled(Code)(Java Doc)
protected XIncludeHandler fXIncludeHandler(Code)(Java Doc)
protected XIncludeNamespaceSupport fXIncludeNSContext(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.XIncludeAwareParserConfiguration
protected void configurePipeline()(Code)(Java Doc)
protected void configureXML11Pipeline()(Code)(Java Doc)
public boolean getFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc)
public void setFeature(String featureId, boolean state) throws XMLConfigurationException(Code)(Java Doc)

Fields inherited from org.apache.xerces.parsers.XML11Configuration
final protected static String ALLOW_JAVA_ENCODINGS(Code)(Java Doc)
final protected static String CONTINUE_AFTER_FATAL_ERROR(Code)(Java Doc)
final protected static String DATATYPE_VALIDATOR_FACTORY(Code)(Java Doc)
final protected static String DOCUMENT_SCANNER(Code)(Java Doc)
final protected static String DTD_PROCESSOR(Code)(Java Doc)
final protected static String DTD_SCANNER(Code)(Java Doc)
final protected static String DTD_VALIDATOR(Code)(Java Doc)
final protected static String ENTITY_MANAGER(Code)(Java Doc)
final protected static String ENTITY_RESOLVER(Code)(Java Doc)
final protected static String ERROR_HANDLER(Code)(Java Doc)
final protected static String ERROR_REPORTER(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 GENERATE_SYNTHETIC_ANNOTATIONS(Code)(Java Doc)
final protected static String HONOUR_ALL_SCHEMALOCATIONS(Code)(Java Doc)
final protected static String IDENTITY_CONSTRAINT_CHECKING(Code)(Java Doc)
final protected static String ID_IDREF_CHECKING(Code)(Java Doc)
final protected static String IGNORE_XSI_TYPE(Code)(Java Doc)
final protected static String JAXP_SCHEMA_LANGUAGE(Code)(Java Doc)
final protected static String JAXP_SCHEMA_SOURCE(Code)(Java Doc)
final protected static String LOAD_EXTERNAL_DTD(Code)(Java Doc)
final protected static String NAMESPACES(Code)(Java Doc)
final protected static String NAMESPACE_BINDER(Code)(Java Doc)
final protected static String NORMALIZE_DATA(Code)(Java Doc)
final protected static String NOTIFY_BUILTIN_REFS(Code)(Java Doc)
final protected static String NOTIFY_CHAR_REFS(Code)(Java Doc)
final protected static boolean PRINT_EXCEPTION_STACK_TRACE(Code)(Java Doc)
final protected static String ROOT_TYPE_DEF(Code)(Java Doc)
final protected static String SCHEMA_AUGMENT_PSVI(Code)(Java Doc)
final protected static String SCHEMA_ELEMENT_DEFAULT(Code)(Java Doc)
final protected static String SCHEMA_LOCATION(Code)(Java Doc)
final protected static String SCHEMA_NONS_LOCATION(Code)(Java Doc)
final protected static String SCHEMA_VALIDATOR(Code)(Java Doc)
final protected static String SYMBOL_TABLE(Code)(Java Doc)
final protected static String UNPARSED_ENTITY_CHECKING(Code)(Java Doc)
final protected static String USE_GRAMMAR_POOL_ONLY(Code)(Java Doc)
final protected static String VALIDATE_ANNOTATIONS(Code)(Java Doc)
final protected static String VALIDATION(Code)(Java Doc)
final protected static String VALIDATION_MANAGER(Code)(Java Doc)
final protected static String WARN_ON_DUPLICATE_ATTDEF(Code)(Java Doc)
final protected static String WARN_ON_DUPLICATE_ENTITYDEF(Code)(Java Doc)
final protected static String WARN_ON_UNDECLARED_ELEMDEF(Code)(Java Doc)
final protected static String XML11_DATATYPE_VALIDATOR_FACTORY(Code)(Java Doc)
final protected static String XMLGRAMMAR_POOL(Code)(Java Doc)
final protected static String XMLSCHEMA_FULL_CHECKING(Code)(Java Doc)
final protected static String XMLSCHEMA_VALIDATION(Code)(Java Doc)
final protected static String XML_STRING(Code)(Java Doc)
protected ArrayList fCommonComponents(Code)(Java Doc)
protected ArrayList fComponents(Code)(Java Doc)
protected boolean fConfigUpdated(Code)(Java Doc)
protected XMLDTDScanner fCurrentDTDScanner(Code)(Java Doc)
protected DTDDVFactory fCurrentDVFactory(Code)(Java Doc)
protected XMLDocumentScanner fCurrentScanner(Code)(Java Doc)
protected XMLDTDContentModelHandler fDTDContentModelHandler(Code)(Java Doc)
protected XMLDTDHandler fDTDHandler(Code)(Java Doc)
protected XMLDTDProcessor fDTDProcessor(Code)(Java Doc)
protected XMLDTDScanner fDTDScanner(Code)(Java Doc)
protected XMLDTDValidator fDTDValidator(Code)(Java Doc)
protected DTDDVFactory fDatatypeValidatorFactory(Code)(Java Doc)
protected XMLDocumentHandler fDocumentHandler(Code)(Java Doc)
protected XMLEntityManager fEntityManager(Code)(Java Doc)
protected XMLErrorReporter fErrorReporter(Code)(Java Doc)
protected XMLGrammarPool fGrammarPool(Code)(Java Doc)
protected XMLInputSource fInputSource(Code)(Java Doc)
protected XMLDocumentSource fLastComponent(Code)(Java Doc)
protected Locale fLocale(Code)(Java Doc)
protected XMLLocator fLocator(Code)(Java Doc)
protected XMLNSDocumentScannerImpl fNamespaceScanner(Code)(Java Doc)
protected XMLDTDValidator fNonNSDTDValidator(Code)(Java Doc)
protected XMLDocumentScannerImpl fNonNSScanner(Code)(Java Doc)
protected boolean fParseInProgress(Code)(Java Doc)
protected XMLSchemaValidator fSchemaValidator(Code)(Java Doc)
protected SymbolTable fSymbolTable(Code)(Java Doc)
protected ValidationManager fValidationManager(Code)(Java Doc)
protected XMLVersionDetector fVersionDetector(Code)(Java Doc)
protected ArrayList fXML11Components(Code)(Java Doc)
protected XML11DTDProcessor fXML11DTDProcessor(Code)(Java Doc)
protected XML11DTDScannerImpl fXML11DTDScanner(Code)(Java Doc)
protected XML11DTDValidator fXML11DTDValidator(Code)(Java Doc)
protected DTDDVFactory fXML11DatatypeFactory(Code)(Java Doc)
protected XML11DocumentScannerImpl fXML11DocScanner(Code)(Java Doc)
protected XML11NSDTDValidator fXML11NSDTDValidator(Code)(Java Doc)
protected XML11NSDocumentScannerImpl fXML11NSDocScanner(Code)(Java Doc)

Methods inherited from org.apache.xerces.parsers.XML11Configuration
protected void addCommonComponent(XMLComponent component)(Code)(Java Doc)
protected void addComponent(XMLComponent component)(Code)(Java Doc)
protected void addRecognizedParamsAndSetDefaults(XMLComponent component)(Code)(Java Doc)
protected void addXML11Component(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 void cleanup()(Code)(Java Doc)
protected void configurePipeline()(Code)(Java Doc)
protected void configureXML11Pipeline()(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 boolean getFeature(String featureId) throws XMLConfigurationException(Code)(Java Doc)
boolean getFeature0(String featureId) throws XMLConfigurationException(Code)(Java Doc)
public Locale getLocale()(Code)(Java Doc)
public void parse(XMLInputSource source) throws XNIException, IOException(Code)(Java Doc)
public boolean parse(boolean complete) throws XNIException, IOException(Code)(Java Doc)
protected void reset() throws XNIException(Code)(Java Doc)
protected void resetCommon() throws XNIException(Code)(Java Doc)
protected void resetXML11() 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 setInputSource(XMLInputSource inputSource) throws XMLConfigurationException, IOException(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.