#include <xmltooling/AbstractDOMCachingXMLObject.h>
Inheritance diagram for xmltooling::AbstractDOMCachingXMLObject:
Public Member Functions | |
xercesc::DOMElement * | getDOM () const |
Gets the DOM representation of this XMLObject, if one exists. | |
void | setDOM (xercesc::DOMElement *dom, bool bindDocument=false) const |
Sets the DOM representation of this XMLObject. | |
void | setDocument (xercesc::DOMDocument *doc) const |
Assigns ownership of a DOM document to the XMLObject. | |
void | releaseDOM () const |
Releases the DOM representation of this XMLObject, if there is one. | |
void | releaseParentDOM (bool propagateRelease=true) const |
Releases the DOM representation of this XMLObject's parent. | |
void | releaseChildrenDOM (bool propagateRelease=true) const |
Releases the DOM representation of this XMLObject's children. | |
XMLObject * | clone () const |
Creates a copy of the object, along with all of its children. | |
void | detach () |
Specialized function for detaching a child object from its parent while disposing of the parent. | |
Protected Member Functions | |
AbstractDOMCachingXMLObject (const AbstractDOMCachingXMLObject &src) | |
Copy constructor. | |
xercesc::DOMElement * | cloneDOM (xercesc::DOMDocument *doc=0) const |
If a DOM representation exists, this clones it into a new document. |
Inherit from this class to implement standard DOM caching behavior.
|
Creates a copy of the object, along with all of its children. The new object tree will be completely distinct and independent of the original in all respects. Implements xmltooling::XMLObject. |
|
If a DOM representation exists, this clones it into a new document.
|
|
Specialized function for detaching a child object from its parent while disposing of the parent. This is not a generic way of detaching any child object, but only of pruning a single child from the root of an XMLObject tree. If the detached XMLObject's parent is itself a child, an exception will be thrown. It's mainly useful for turning a child into the new root of the tree without having to clone the child. Reimplemented from xmltooling::AbstractXMLObject. |
|
Gets the DOM representation of this XMLObject, if one exists.
Implements xmltooling::XMLObject. |
|
Releases the DOM representation of this XMLObject's children.
Implements xmltooling::XMLObject. |
|
Releases the DOM representation of this XMLObject's parent.
Implements xmltooling::XMLObject. |
|
Assigns ownership of a DOM document to the XMLObject. This binds the lifetime of the document to the lifetime of the object.
Implements xmltooling::XMLObject. |
|
Sets the DOM representation of this XMLObject.
Implements xmltooling::XMLObject. |