* 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
}\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
* 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