|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.calitha.xml.ValidatingConfiguration
public final class ValidatingConfiguration
The ValidatingConfiguration represents a configuration for
SimpleDOMParser that validates.
The configuration is used when you want a parser to validate the XML. No caching is done for external entities, such as DTD's or XML Schema's. The schema locations can be specified in the constructor.
If you want to feed the grammar pool with the necessary grammars, then you are bettter of using the
PreParsedGrammarsConfiguration
The settings are:
| Constructor Summary | |
|---|---|
ValidatingConfiguration()
Creates a new ValidatingConfiguration. |
|
ValidatingConfiguration(String noNamespaceSchemaLocation,
String schemaLocation)
Creates a new ValidatingConfiguration. |
|
| 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 ValidatingConfiguration(String noNamespaceSchemaLocation,
String schemaLocation)
Schema locations can be specified to so that for example you can load a schema, belonging to a certain namespace, from a local file, instead of the one specified in the XML file.
noNamespaceSchemaLocation - schema location for no namespaceschemaLocation - pairs of namespace and locationpublic ValidatingConfiguration()
The schema locations in the XML file are used when validating.
| 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 | ||||||||