Default support for arbitrary DOM objects.
[shibboleth/cpp-xmltooling.git] / xmltooling / XMLObjectBuilder.h
index 43e9daa..a4c4311 100644 (file)
@@ -58,7 +58,7 @@ namespace xmltooling {
          * Retrieves an XMLObjectBuilder using the key it was registered with.\r
          * \r
          * @param key the key used to register the builder\r
-         * @return the builder\r
+         * @return the builder or NULL\r
          */\r
         static const XMLObjectBuilder* getBuilder(const QName& key) {\r
             std::map<QName,XMLObjectBuilder*>::const_iterator i=m_map.find(key);\r
@@ -66,7 +66,8 @@ namespace xmltooling {
         }\r
 \r
         /**\r
-         * Retrieves an XMLObjectBuilder for a given DOM element\r
+         * Retrieves an XMLObjectBuilder for a given DOM element.\r
+         * If no match is found, the default builder is returned, if any.\r
          * \r
          * @param element the element for which to locate a builder\r
          * @return the builder or NULL\r
@@ -134,6 +135,9 @@ namespace xmltooling {
          * Unregisters and destroys all registered builders. \r
          */\r
         static void destroyBuilders();\r
+\r
+    protected:\r
+        XMLObjectBuilder() {}\r
     \r
     private:\r
         static std::map<QName,XMLObjectBuilder*> m_map;\r