|
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, XmlSaxParser::Error *code=0) |
| 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
Referenced by XmlFragment::copy(), XmlElement::getParent(), XmlElement::setParent(), and XmlElement::XmlElement().
|
inlinevirtual |
Destructor
|
pure virtual |
Append a new child to this XmlParent
| child | The child to append |
Implemented in XmlDocument, XmlElement, and XmlFragment.
Referenced by addChildSafe().
Append a new child of this XmlParent, release the object on failure
| child | The child to append |
| code | Optional pointr to error code to be filled on failure |
References addChild().
|
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.
|
inlinevirtual |
Get an XmlElement object from this XmlParent. Default implementation return 0
Reimplemented in XmlElement.
|
inlinevirtual |
Get an XmlFragment object from this XmlParent. Default implementation return 0
Reimplemented in XmlFragment.
|
inlinevirtual |
Obtain this xml parent children. Default implementation returns an empty list
Reimplemented in XmlElement, and XmlFragment.
References ObjList::empty().
Referenced by hasChildren().
|
inline |
Check if at least one child element exists
References getChildren(), and ObjList::skipNull().
Remove a child
| child | The child to remove |
| delObj | True to delete the object |
Implemented in XmlDocument, XmlElement, and XmlFragment.
|
inlinevirtual |
Reset this xml parent. Default implementation does nothing
Reimplemented in XmlDocument, and XmlFragment.