Yate
|
Xml Parent. More...
#include <yatexml.h>
Public Member Functions | |
XmlParent () | |
virtual | ~XmlParent () |
virtual XmlDocument * | document () |
virtual XmlFragment * | fragment () |
virtual XmlElement * | element () |
virtual XmlSaxParser::Error | addChild (XmlChild *child)=0 |
XmlChild * | addChildSafe (XmlChild *child) |
virtual XmlChild * | removeChild (XmlChild *child, bool delObj=true)=0 |
virtual void | reset () |
virtual const ObjList & | getChildren () const |
virtual void | clearChildren () |
bool | hasChildren () const |
Xml Parent.
Xml Parent for a Xml child
|
inline |
Constructor
|
inlinevirtual |
Destructor
|
pure virtual |
Append a new child to this XmlParent
child | The child to append |
Implemented in XmlElement, XmlDocument, and XmlFragment.
Referenced by XmlParent::addChildSafe().
Append a new child of this XmlParent, release the object on failure
child | The child to append |
References XmlParent::addChild(), and TelEngine::destruct().
|
inlinevirtual |
Clear this xml parent children. Default implementation does nothing
Reimplemented in XmlElement, and XmlFragment.
|
inlinevirtual |
Get an XmlDocument object from this XmlParent. Default implementation return 0
Reimplemented in XmlDocument.
Referenced by XmlDomParser::document().
|
inlinevirtual |
Get an XmlElement object from this XmlParent. Default implementation return 0
Reimplemented in XmlElement.
Referenced by XmlElement::parent().
|
inlinevirtual |
Get an XmlFragment object from this XmlParent. Default implementation return 0
Reimplemented in XmlFragment.
Referenced by XmlDomParser::fragment().
|
inlinevirtual |
Obtain this xml parent children. Default implementation returns an empty list
Reimplemented in XmlElement, and XmlFragment.
References ObjList::empty().
Referenced by XmlParent::hasChildren().
|
inline |
Check if at least one child element exists
References XmlParent::getChildren(), and ObjList::skipNull().
Remove a child
child | The child to remove |
delObj | True to delete the object |
Implemented in XmlElement, XmlDocument, and XmlFragment.
|
inlinevirtual |
Reset this xml parent. Default implementation does nothing
Reimplemented in XmlDocument, and XmlFragment.