Bug fixes and API changes from second unit test.
[shibboleth/xmltooling.git] / xmltooling / io / AbstractXMLObjectMarshaller.h
index e93a4b3..2fd6511 100644 (file)
@@ -80,7 +80,7 @@ namespace xmltooling {
          * @param targetElement the Element into which the XMLObject is marshalled into\r
          * @throws MarshallingException thrown if there is a problem marshalling the object\r
          */\r
-        void marshallInto(XMLObject* xmlObject, DOMElement* targetElement) const;\r
+        void marshallInto(XMLObject& xmlObject, DOMElement* targetElement) const;\r
     \r
         /**\r
          * Creates an xsi:type attribute, corresponding to the given type of the XMLObject, on the DOM element.\r
@@ -91,7 +91,7 @@ namespace xmltooling {
          * @throws MarshallingException thrown if the type on the XMLObject is doesn't contain\r
          * a local name, prefix, and namespace URI\r
          */\r
-        void marshallElementType(XMLObject* xmlObject, DOMElement* domElement) const;\r
+        void marshallElementType(XMLObject& xmlObject, DOMElement* domElement) const;\r
 \r
         /**\r
          * Creates the xmlns attributes for any namespaces set on the given XMLObject.\r
@@ -99,7 +99,7 @@ namespace xmltooling {
          * @param xmlObject the XMLObject\r
          * @param domElement the DOM element the namespaces will be added to\r
          */\r
-        void marshallNamespaces(const XMLObject* xmlObject, DOMElement* domElement) const;\r
+        void marshallNamespaces(const XMLObject& xmlObject, DOMElement* domElement) const;\r
     \r
         /**\r
          * Marshalls the child elements of the given XMLObject.\r
@@ -109,7 +109,7 @@ namespace xmltooling {
          * \r
          * @throws MarshallingException thrown if there is a problem marshalling a child element\r
          */\r
-        void marshallChildElements(const XMLObject* xmlObject, DOMElement* domElement) const;\r
+        void marshallChildElements(const XMLObject& xmlObject, DOMElement* domElement) const;\r
 \r
         /**\r
          * Marshalls the attributes from the given XMLObject into the given DOM element.\r
@@ -121,7 +121,7 @@ namespace xmltooling {
          * \r
          * @throws UnmarshallingException thrown if there is a problem unmarshalling an attribute\r
          */\r
-        virtual void marshallAttributes(const XMLObject* xmlObject, DOMElement* domElement) const=0;\r
+        virtual void marshallAttributes(const XMLObject& xmlObject, DOMElement* domElement) const=0;\r
 \r
         /**\r
          * Marshalls data from the XMLObject into content of the DOM Element.\r
@@ -129,7 +129,7 @@ namespace xmltooling {
          * @param xmlObject the XMLObject\r
          * @param domElement the DOM element recieving the content\r
          */\r
-        virtual void marshallElementContent(const XMLObject* xmlObject, DOMElement* domElement) const=0;\r
+        virtual void marshallElementContent(const XMLObject& xmlObject, DOMElement* domElement) const=0;\r
 \r
         void* m_log;\r
     private:\r