From: cantor Date: Wed, 18 Aug 2010 16:51:40 +0000 (+0000) Subject: Add note about ownership of return values to each method. X-Git-Tag: 1.4.1~69 X-Git-Url: http://www.project-moonshot.org/gitweb/?p=shibboleth%2Fxmltooling.git;a=commitdiff_plain;h=d596e77ea8cea4010e2fffe81660198c05bac5de Add note about ownership of return values to each method. git-svn-id: https://svn.middleware.georgetown.edu/cpp-xmltooling/branches/REL_1@769 de75baf8-a10c-0410-a50a-987c0e22f00f --- diff --git a/xmltooling/XMLObjectBuilder.h b/xmltooling/XMLObjectBuilder.h index 5ad4394..a3b5f42 100644 --- a/xmltooling/XMLObjectBuilder.h +++ b/xmltooling/XMLObjectBuilder.h @@ -38,8 +38,7 @@ namespace xmltooling { /** - * A factory interface for obtaining XMLObjects. - * Subclasses MAY supply additional factory methods. + * A factory interface for obtaining an XMLObject. */ class XMLTOOL_API XMLObjectBuilder { @@ -50,6 +49,7 @@ namespace xmltooling { /** * Creates an empty XMLObject with a particular element name. *

The results are undefined if localName is nullptr or empty. + *

The caller is responsible for freeing the resulting object. * * @param nsURI namespace URI for element * @param localName local name of element @@ -63,6 +63,7 @@ namespace xmltooling { /** * Creates an empty XMLObject with a particular element name. + *

The caller is responsible for freeing the resulting object. * * @param q QName of element for object * @return the empty XMLObject @@ -71,6 +72,7 @@ namespace xmltooling { /** * Creates an unmarshalled XMLObject from a DOM Element. + *

The caller is responsible for freeing the resulting object. * * @param element the unmarshalling source * @param bindDocument true iff the XMLObject should take ownership of the DOM Document @@ -80,6 +82,7 @@ namespace xmltooling { /** * Creates an unmarshalled XMLObject from the root of a DOM Document. + *

The caller is responsible for freeing the resulting object. * * @param doc the unmarshalling source * @param bindDocument true iff the XMLObject should take ownership of the DOM Document @@ -89,6 +92,7 @@ namespace xmltooling { /** * Creates an unmarshalled XMLObject using the default build method, if a builder can be found. + *

The caller is responsible for freeing the resulting object. * * @param element the unmarshalling source * @param bindDocument true iff the new XMLObject should take ownership of the DOM Document