mermaid::support::xml::XmlElement Class Reference

Class representing an XML Element. More...

#include <XmlElement.hpp>

Inheritance diagram for mermaid::support::xml::XmlElement:
Inheritance graph
[legend]
Collaboration diagram for mermaid::support::xml::XmlElement:
Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual XmlElementclone ()
const XmlAttributeVector getAttributes () const
XmlCharDataVector getCharData ()
XmlElementVector getChildrenElements ()
shared_ptr< XmlCharDatagetFirstNonBlankCharData ()
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.
XmlElementoperator= (const XmlElement &e)
 Assignment operator.
 XmlElement (string xmlString)
 Constructor.
 XmlElement (const XmlElement &e)
 Copy constructor.
 XmlElement ()
 Constructor.
 ~XmlElement ()
 Destructor.

Friends

class XmlDocument

Detailed Description

Class representing an XML Element.

Author:
Marco Barbosa

Definition at line 69 of file XmlElement.hpp.


Constructor & Destructor Documentation

XmlElement::XmlElement (  ) 

Constructor.

This method creates a new XmlElement instance.

Author:
Marco Barbosa

Definition at line 51 of file XmlElement.cpp.

XmlElement::XmlElement ( const XmlElement e  ) 

Copy constructor.

Author:
Marco Barbosa

Definition at line 62 of file XmlElement.cpp.

XmlElement::XmlElement ( string  xmlString  ) 

Constructor.

This method build an XmlElement from a string

Author:
Marco Barbosa

Definition at line 69 of file XmlElement.cpp.

XmlElement::~XmlElement (  ) 

Destructor.

This method makes deinitializations for objects of this class.

Author:
Marco Barbosa

Definition at line 162 of file XmlElement.cpp.


Member Function Documentation

const XmlAttributeVector XmlElement::getAttributes (  )  const

XmlElement's attribute getter.

Returns:
XmlAttributeVector Returns all the attributes.
Author:
Marco Barbosa

Definition at line 228 of file XmlElement.cpp.

XmlCharDataVector XmlElement::getCharData (  ) 

XmlElement's CharData getter.

Returns:
XmlCharDataVector Returns all the CharData belonging to this element
Author:
Marco Barbosa

Definition at line 195 of file XmlElement.cpp.

XmlElementVector XmlElement::getChildrenElements (  ) 

XmlElement's children elements getter.

Returns:
XmlElementVector Ret urns all the child elements.
Author:
Marco Barbosa

Definition at line 221 of file XmlElement.cpp.

shared_ptr< XmlCharData > XmlElement::getFirstNonBlankCharData (  ) 

XmlElement's CharData getter.

Returns:
XmlCharDataVector Returns only the first CharData which is not blank
Author:
Marco Barbosa

Definition at line 202 of file XmlElement.cpp.

const string XmlElement::getName (  )  const

XmlElement's name getter.

Returns:
string Returns the name of this element.
Author:
Marco Barbosa

Definition at line 188 of file XmlElement.cpp.

const bool XmlItem::isXmlCharData (  )  const [virtual, inherited]

Method to check if XmlItem is of type XmlCharData.

Returns:
True if XmlItem is of type XmlCharData, false otherwise

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.

Returns:
True

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]
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.

Author:
Marco Barbosa

Definition at line 176 of file XmlElement.cpp.

Generated on Fri Mar 4 22:15:54 2011 for MeRMaID::support by  doxygen 1.6.3