//
// http://apache.org/xml/features/validation/default-attribute-values
//
if (feature.equals("validation/default-attribute-values")) {
// REVISIT
throw new SAXNotRecognizedException(featureId);
}
//
// http://apache.org/xml/features/validation/validate-content-models
//
if (feature.equals("validation/validate-content-models")) {
// REVISIT
throw new SAXNotRecognizedException(featureId);
}
//
// http://apache.org/xml/features/nonvalidating/load-dtd-grammar
//
if (feature.equals("nonvalidating/load-dtd-grammar")) {
return getLoadDTDGrammar();
}
//
// http://apache.org/xml/features/nonvalidating/load-external-dtd
//
if (feature.equals("nonvalidating/load-external-dtd")) {
return getLoadExternalDTD();
}
//
// http://apache.org/xml/features/validation/validate-datatypes
//
if (feature.equals("validation/validate-datatypes")) {
// REVISIT
throw new SAXNotRecognizedException(featureId);
}
//
// http://apache.org/xml/features/validation/warn-on-duplicate-attdef
// Emits an error when an attribute is redefined.
//
if (feature.equals("validation/warn-on-duplicate-attdef")) {
return getValidationWarnOnDuplicateAttdef();
}
//
// http://apache.org/xml/features/validation/warn-on-undeclared-elemdef
// Emits an error when an element's content model
// references an element, by name, that is not declared
// in the grammar.
//
if (feature.equals("validation/warn-on-undeclared-elemdef")) {
return getValidationWarnOnUndeclaredElemdef();
}
//
// http://apache.org/xml/features/allow-java-encodings
// Allows the use of Java encoding names in the XML
// and TextDecl lines.
//
if (feature.equals("allow-java-encodings")) {
return getAllowJavaEncodings();
}
//
// http://apache.org/xml/features/continue-after-fatal-error
// Allows the parser to continue after a fatal error.
// Normally, a fatal error would stop the parse.
//
if (feature.equals("continue-after-fatal-error")) {
return getContinueAfterFatalError();
}
//
// Not recognized
//
}
//
// Not recognized
//
throw new SAXNotRecognizedException(featureId);
} // getFeature(String):boolean