You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by tn...@apache.org on 2001/11/13 14:24:46 UTC
cvs commit: xml-xerces/c/src/framework XMLValidator.hpp
tng 01/11/13 05:24:46
Modified: c/src/framework XMLValidator.hpp
Log:
Deprecate function XMLValidator::checkRootElement.
Revision Changes Path
1.16 +19 -11 xml-xerces/c/src/framework/XMLValidator.hpp
Index: XMLValidator.hpp
===================================================================
RCS file: /home/cvs/xml-xerces/c/src/framework/XMLValidator.hpp,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- XMLValidator.hpp 2001/10/24 23:46:52 1.15
+++ XMLValidator.hpp 2001/11/13 13:24:46 1.16
@@ -56,6 +56,9 @@
/*
* $Log: XMLValidator.hpp,v $
+ * Revision 1.16 2001/11/13 13:24:46 tng
+ * Deprecate function XMLValidator::checkRootElement.
+ *
* Revision 1.15 2001/10/24 23:46:52 peiyongz
* [Bug 4342] fix the leak.
*
@@ -200,16 +203,6 @@
) = 0;
/**
- * For those validators that contrain the possible root elements of a
- * document to only particular elements, they should use this call to
- * validate that the passed root element id is a legal root element.
- */
- virtual bool checkRootElement
- (
- const unsigned int elemId
- ) = 0;
-
- /**
* The derived class should fault in the passed XMLAttr value. It should
* use the passeed attribute definition (which is passed via the base
* type so it must often be downcast to the appropriate type for the
@@ -412,9 +405,24 @@
//@}
// -----------------------------------------------------------------------
+ // Deprecated XMLValidator interface
+ // -----------------------------------------------------------------------
+ /**
+ *
+ * DEPRECATED.
+ * For those validators that contrain the possible root elements of a
+ * document to only particular elements, they should use this call to
+ * validate that the passed root element id is a legal root element.
+ */
+ bool checkRootElement
+ (
+ const unsigned int elemId
+ ) { return true;};
+
+ // -----------------------------------------------------------------------
// Notification that lazy data has been deleted
// -----------------------------------------------------------------------
- static void reinitXMLValidator();
+ static void reinitXMLValidator();
protected :
// -----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org