You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by mr...@apache.org on 2005/12/01 04:58:39 UTC
svn commit: r350143 -
/xerces/java/trunk/src/org/apache/xerces/dom/DOMConfigurationImpl.java
Author: mrglavas
Date: Wed Nov 30 19:58:35 2005
New Revision: 350143
URL: http://svn.apache.org/viewcvs?rev=350143&view=rev
Log:
Always return true when the "internal/parser-settings" feature is queried.
Modified:
xerces/java/trunk/src/org/apache/xerces/dom/DOMConfigurationImpl.java
Modified: xerces/java/trunk/src/org/apache/xerces/dom/DOMConfigurationImpl.java
URL: http://svn.apache.org/viewcvs/xerces/java/trunk/src/org/apache/xerces/dom/DOMConfigurationImpl.java?rev=350143&r1=350142&r2=350143&view=diff
==============================================================================
--- xerces/java/trunk/src/org/apache/xerces/dom/DOMConfigurationImpl.java (original)
+++ xerces/java/trunk/src/org/apache/xerces/dom/DOMConfigurationImpl.java Wed Nov 30 19:58:35 2005
@@ -524,6 +524,26 @@
public XMLErrorHandler getErrorHandler() {
return (XMLErrorHandler)fProperties.get(ERROR_HANDLER);
} // getErrorHandler():XMLErrorHandler
+
+ /**
+ * Returns the state of a feature.
+ *
+ * @param featureId The feature identifier.
+ * @return true if the feature is supported
+ *
+ * @throws XMLConfigurationException Thrown for configuration error.
+ * In general, components should
+ * only throw this exception if
+ * it is <strong>really</strong>
+ * a critical error.
+ */
+ public boolean getFeature(String featureId)
+ throws XMLConfigurationException {
+ if (featureId.equals(PARSER_SETTINGS)) {
+ return true;
+ }
+ return super.getFeature(featureId);
+ }
/**
* Set the state of a feature.
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xerces.apache.org
For additional commands, e-mail: commits-help@xerces.apache.org