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 com.sun.org.apache.xerces.internal.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:
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| protected XMLDTDLoader | |
| protected XMLSchemaLoader | |
| protected static final XMLGrammarPoolImpl | |
| protected static final SynchronizedSymbolTable | |
| protected static final String |
| Access | Constructor and Description |
|---|---|
| public | |
| public | XMLGrammarCachingConfiguration(SymbolTable
The symbol table to use. symbolTable)Constructs a parser configuration using the specified symbol table. |
| public | XMLGrammarCachingConfiguration(SymbolTable
The symbol table to use. symbolTable, XMLGrammarPool The grammar pool to use. grammarPool)Constructs a parser configuration using the specified symbol table and grammar pool. |
| public | XMLGrammarCachingConfiguration(SymbolTable
The symbol table to use. symbolTable, XMLGrammarPool The grammar pool to use. grammarPool, XMLComponentManager The parent settings. parentSettings)Constructs a parser configuration using the specified symbol table, grammar pool, and parent settings. |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| pack-priv DTDGrammar | |
| public Grammar | Returns: The newly createdGrammar.The type of the grammar to be constructed type, String The location of the grammar to be constructed.
The parser will not expand this URI or make it
available to the EntityResolver uri)Parse a grammar from a location identified by an URI. |
| public Grammar | Returns: The newly createdGrammar.The type of the grammar to be constructed type, XMLInputSource The XMLInputSource containing this grammar's
information
If a URI is included in the systemId field, the parser will not expand this URI or make it
available to the EntityResolver is)Parse a grammar from a location identified by an XMLInputSource. |
| pack-priv SchemaGrammar | |
| public void |
| BIG_PRIME | back to summary |
|---|---|
| public static final int BIG_PRIME | |
| fDTDLoader | back to summary |
|---|---|
| protected XMLDTDLoader fDTDLoader | |
| fSchemaLoader | back to summary |
|---|---|
| protected XMLSchemaLoader fSchemaLoader | |
| fStaticGrammarPool | back to summary |
|---|---|
| protected static final XMLGrammarPoolImpl fStaticGrammarPool | |
| fStaticSymbolTable | back to summary |
|---|---|
| protected static final SynchronizedSymbolTable fStaticSymbolTable | |
| SCHEMA_FULL_CHECKING | back to summary |
|---|---|
| protected static final String SCHEMA_FULL_CHECKING | |
| XMLGrammarCachingConfiguration | back to summary |
|---|---|
| public XMLGrammarCachingConfiguration() Default constructor. | |
| XMLGrammarCachingConfiguration | back to summary |
|---|---|
| public XMLGrammarCachingConfiguration(SymbolTable symbolTable) Constructs a parser configuration using the specified symbol table.
| |
| XMLGrammarCachingConfiguration | back to summary |
|---|---|
| public XMLGrammarCachingConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool) 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.
| |
| XMLGrammarCachingConfiguration | back to summary |
|---|---|
| public XMLGrammarCachingConfiguration(SymbolTable symbolTable, XMLGrammarPool grammarPool, XMLComponentManager parentSettings) 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.
| |
| clearGrammarPool | back to summary |
|---|---|
| public void clearGrammarPool() | |
| lockGrammarPool | back to summary |
|---|---|
| public void lockGrammarPool() | |
| parseDTD | back to summary |
|---|---|
| pack-priv DTDGrammar parseDTD(XMLInputSource is) throws IOException | |
| parseGrammar | back to summary |
|---|---|
| public Grammar parseGrammar(String type, String uri) throws XNIException, IOException Parse a grammar from a location identified by an URI. This method also adds this grammar to the XMLGrammarPool
| |
| parseGrammar | back to summary |
|---|---|
| public Grammar parseGrammar(String type, XMLInputSource is) throws XNIException, IOException Parse a grammar from a location identified by an XMLInputSource. This method also adds this grammar to the XMLGrammarPool
| |
| parseXMLSchema | back to summary |
|---|---|
| pack-priv SchemaGrammar parseXMLSchema(XMLInputSource is) throws IOException | |
| unlockGrammarPool | back to summary |
|---|---|
| public void unlockGrammarPool() | |