* A thread-safe abstract unmarshaller.\r
*/\r
\r
-#if !defined(__xmltooling_xmlunmarshaller_h__)\r
+#ifndef __xmltooling_xmlunmarshaller_h__\r
#define __xmltooling_xmlunmarshaller_h__\r
\r
#include <xmltooling/AbstractDOMCachingXMLObject.h>\r
virtual void unmarshallAttributes(const DOMElement* domElement);\r
\r
/**\r
- * Unmarshalls a given Element's children. The resulting XMLObject child is passed to\r
- * processChildElement() for further processing.\r
+ * Unmarshalls a given Element's child nodes. The resulting XMLObject children and content\r
+ * are passed to processChildElement() or processText() for further processing.\r
* \r
* @param domElement the DOM Element whose children will be unmarshalled\r
* \r
* @throws UnmarshallingException thrown if an error occurs unmarshalling the child elements\r
*/\r
- virtual void unmarshallChildElements(const DOMElement* domElement);\r
+ virtual void unmarshallContent(const DOMElement* domElement);\r
\r
/**\r
* Called after a child element has been unmarshalled so that it can be added to the parent XMLObject.\r
* \r
* @throws UnmarshallingException thrown if there is a problem adding the child to the parent\r
*/\r
- virtual void processChildElement(XMLObject* child, const DOMElement* childRoot)=0;\r
+ virtual void processChildElement(XMLObject* child, const DOMElement* childRoot);\r
\r
/**\r
* Called after an attribute has been unmarshalled so that it can be added to the XMLObject.\r
* \r
* @throws UnmarshallingException thrown if there is a problem adding the attribute to the XMLObject\r
*/\r
- virtual void processAttribute(const DOMAttr* attribute)=0;\r
- \r
- /**\r
- * Called if the element being unmarshalled contained textual content so that it can be added to the XMLObject.\r
- * \r
- * @param elementContent the Element's text content\r
- */\r
- virtual void processElementContent(const XMLCh* elementContent)=0;\r
+ virtual void processAttribute(const DOMAttr* attribute);\r
};\r
\r
};\r