#include <cxxtools/xml/endelement.h>

Public Member Functions | |
| EndElement (const String &name=String()) | |
| Constructs a new EndElement object with the given (optional) string as tag name. | |
| ~EndElement () | |
| Empty destructor. | |
| EndElement * | clone () const |
| Clones this EndElement object by creating a duplicate on the heap and returning it. | |
| void | clear () |
| String & | name () |
| Returns the tag name of the closing tag for which this EndElement object was created. | |
| const String & | name () const |
| Returns the tag name of the closing tag for which this EndElement object was created. | |
| void | setName (const String name) |
| Sets the tag name of the end tag for which this EndElement object was created. | |
| virtual bool | operator== (const Node &node) const |
| Compares this EndElement object with the given node. | |
Use name() to get the name of the tag which was closed.
When parsing $test$ a StartElement, a Character and finally an EndElement node is created. If an empty tag is parsed, like for example $$, a StartElement and an EndElement is created.
| EndElement | ( | const String & | name = String() |
) |
| name | The name of the EndElement object. This is an optional parameter. Default is an empty string. |
| EndElement* clone | ( | ) | const [virtual] |
| String& name | ( | ) |
When parsing test a StartElement, a Character and finally an EndElement node is created. The EndElement has the name "a". If an empty tag is parsed, like for example , a StartElement and an EndElement ("a") is created.
| const String& name | ( | ) | const |
When parsing test a StartElement, a Character and finally an EndElement node is created. The EndElement has the name "a". If an empty tag is parsed, like for example , a StartElement and an EndElement ("a") is created.
| void setName | ( | const String | name | ) |
| name | The new name for this EndElement object. |
| virtual bool operator== | ( | const Node & | node | ) | const [virtual] |
This method returns $true$ if the given node also is a EndElement object and the name of both EndElement objects is the same. Otherwise it returns $false$.
| node | This Node object is compared to the current EndElement node object. |
Reimplemented from Node.