#include <xmltooling/AbstractComplexElement.h>
Inheritance diagram for xmltooling::AbstractComplexElement:
Public Member Functions | |
bool | hasChildren () const |
Checks if this XMLObject has children. | |
const std::list< XMLObject * > & | getOrderedChildren () const |
Returns an unmodifiable list of child objects in the order that they should appear in the serialized representation. | |
void | removeChild (XMLObject *child) |
Used by a child's detach method to isolate the child from this parent object in preparation for destroying the parent (this object). | |
const XMLCh * | getTextContent (unsigned int position=0) const |
Returns the text content at the specified position relative to any child elements. | |
void | setTextContent (const XMLCh *value, unsigned int position=0) |
Sets (or clears) text content relative to a child element's position. | |
Protected Member Functions | |
AbstractComplexElement (const AbstractComplexElement &src) | |
Copy constructor. | |
Protected Attributes | |
std::list< XMLObject * > | m_children |
Underlying list of child objects. | |
std::vector< XMLCh * > | m_text |
Interstitial text nodes. |
Inherit from this class to implement an element with child objects and mixed content.
|
Returns an unmodifiable list of child objects in the order that they should appear in the serialized representation. The validity of the returned list is not maintained if any non-const operations are performed on the parent object.
Implements xmltooling::XMLObject. |
|
Returns the text content at the specified position relative to any child elements. A zero represents leading text, 1 comes after the first child, and so forth.
Implements xmltooling::XMLObject. |
|
Checks if this XMLObject has children.
Implements xmltooling::XMLObject. |
|
Used by a child's detach method to isolate the child from this parent object in preparation for destroying the parent (this object).
Implements xmltooling::XMLObject. |
|
Sets (or clears) text content relative to a child element's position.
Implements xmltooling::XMLObject. |
|
Underlying list of child objects. Manages the lifetime of the children. |
|
Interstitial text nodes. Needed to support mixed content, and preserve DOM whitespace across rebuilds. |