Class representing an XML Element. More...
#include <XmlElement.hpp>
Public Member Functions | |
virtual XmlElement * | clone () |
const XmlAttributeVector | getAttributes () const |
XmlCharDataVector | getCharData () |
XmlElementVector | getChildrenElements () |
shared_ptr< XmlCharData > | getFirstNonBlankCharData () |
const string | getName () const |
virtual const bool | isXmlCharData () const |
Method to check if XmlItem is of type XmlCharData. | |
virtual const bool | isXmlElement () const |
Method to check if XmlItem is of type XmlElement. | |
virtual | operator std::string () const =0 |
string cast operator | |
virtual | operator string () const |
Method to convert value to string. | |
XmlElement & | operator= (const XmlElement &e) |
Assignment operator. | |
XmlElement (string xmlString) | |
Constructor. | |
XmlElement (const XmlElement &e) | |
Copy constructor. | |
XmlElement () | |
Constructor. | |
~XmlElement () | |
Destructor. | |
Friends | |
class | XmlDocument |
Class representing an XML Element.
Definition at line 69 of file XmlElement.hpp.
XmlElement::XmlElement | ( | ) |
Constructor.
This method creates a new XmlElement instance.
Definition at line 51 of file XmlElement.cpp.
XmlElement::XmlElement | ( | const XmlElement & | e | ) |
Copy constructor.
Definition at line 62 of file XmlElement.cpp.
XmlElement::XmlElement | ( | string | xmlString | ) |
Constructor.
This method build an XmlElement from a string
Definition at line 69 of file XmlElement.cpp.
XmlElement::~XmlElement | ( | ) |
Destructor.
This method makes deinitializations for objects of this class.
Definition at line 162 of file XmlElement.cpp.
const XmlAttributeVector XmlElement::getAttributes | ( | ) | const |
XmlElement's attribute getter.
Definition at line 228 of file XmlElement.cpp.
XmlCharDataVector XmlElement::getCharData | ( | ) |
XmlElement's CharData getter.
Definition at line 195 of file XmlElement.cpp.
XmlElementVector XmlElement::getChildrenElements | ( | ) |
XmlElement's children elements getter.
Definition at line 221 of file XmlElement.cpp.
shared_ptr< XmlCharData > XmlElement::getFirstNonBlankCharData | ( | ) |
XmlElement's CharData getter.
Definition at line 202 of file XmlElement.cpp.
const string XmlElement::getName | ( | ) | const |
XmlElement's name getter.
Definition at line 188 of file XmlElement.cpp.
const bool XmlItem::isXmlCharData | ( | ) | const [virtual, inherited] |
Method to check if XmlItem is of type XmlCharData.
Reimplemented in mermaid::support::xml::XmlCharData.
Definition at line 50 of file XmlItem.cpp.
const bool XmlElement::isXmlElement | ( | ) | const [virtual] |
Method to check if XmlItem is of type XmlElement.
Reimplemented from mermaid::support::xml::XmlItem.
Definition at line 274 of file XmlElement.cpp.
virtual mermaid::support::syntacticsugar::Stringable::operator std::string | ( | ) | const [pure virtual, inherited] |
string cast operator
Implemented in mermaid::support::data::DataBox, mermaid::support::data::DataBoxArray, mermaid::support::data::DataValue, mermaid::support::data::Double, mermaid::support::data::DoubleArray, mermaid::support::data::Integer, mermaid::support::data::IntegerArray, mermaid::support::data::String, and mermaid::support::data::StringArray.
XmlElement::operator string | ( | ) | const [virtual] |
Method to convert value to string.
Implements mermaid::support::xml::XmlItem.
Definition at line 235 of file XmlElement.cpp.
XmlElement & XmlElement::operator= | ( | const XmlElement & | e | ) |
Assignment operator.
Definition at line 176 of file XmlElement.cpp.