|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.xml.PreParsedGrammarsConfiguration
public final class PreParsedGrammarsConfiguration
The PreParsedGrammarsConfiguration represents a configuration for
SimpleDOMParser that uses pre-parsed grammars.
This configuration is used when you want a parser to validate the XML, using grammars that you have fed to a grammar pool, so that you can be sure the grammars are already available when parsing. The grammar pool is locked, so no additional grammars can be loaded.
The settings are:
| Constructor Summary | |
|---|---|
PreParsedGrammarsConfiguration(org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
|
|
| Method Summary | |
|---|---|
EntityResolver |
getEntityResolver()
Gets the entity resolver. |
org.apache.xerces.xni.grammars.XMLGrammarPool |
getGrammarPool()
Gets grammar pool property |
String |
getNoNamespaceSchemaLocation()
Gets no-namespace schema location property. |
String |
getSchemaLocation()
Gets schema location property. |
boolean |
isDynamicValidation()
Gets dynamic validation feature. |
boolean |
isNamespaces()
Gets namespace processing feature. |
boolean |
isSchemaValidation()
Gets schema validation feature true - Turn on XML Schema validation false - Do not report validation errors against XML Schema default - false |
boolean |
isValidation()
Gets validation feature. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public PreParsedGrammarsConfiguration(org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool)
| Method Detail |
|---|
public boolean isNamespaces()
IParserConfiguration
isNamespaces in interface IParserConfigurationpublic boolean isValidation()
IParserConfiguration
isValidation in interface IParserConfigurationpublic boolean isDynamicValidation()
IParserConfiguration
isDynamicValidation in interface IParserConfigurationpublic boolean isSchemaValidation()
IParserConfiguration
isSchemaValidation in interface IParserConfigurationpublic org.apache.xerces.xni.grammars.XMLGrammarPool getGrammarPool()
IParserConfigurationNull by default.
getGrammarPool in interface IParserConfigurationpublic String getSchemaLocation()
IParserConfigurationThe schema specified by the user using this property will be used if the targetNamespace matches.
getSchemaLocation in interface IParserConfigurationpublic String getNoNamespaceSchemaLocation()
IParserConfigurationThis property allows the user to specify an XML Schema with no namespace.
Null by default.
getNoNamespaceSchemaLocation in interface IParserConfigurationpublic EntityResolver getEntityResolver()
IParserConfiguration
getEntityResolver in interface IParserConfigurationEntityResolver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||