29#ifndef Pt_Xml_EndElement_h
30#define Pt_Xml_EndElement_h
32#include <Pt/Xml/Api.h>
33#include <Pt/Xml/Node.h>
34#include <Pt/Xml/QName.h>
35#include <Pt/Xml/Namespace.h>
36#include <Pt/NonCopyable.h>
81 {
return _namespace->namespaceUri(); }
83 NamespaceMapping& namespaceMapping()
86 const NamespaceMapping& namespaceMapping()
const
90 inline static const Node::Type nodeId()
91 {
return Node::EndElement; }
95 const Namespace* _namespace;
96 NamespaceMapping _nsmap;
105 return nodeCast<EndElement>(node);
114 return nodeCast<EndElement>(node);
123 return nodeCast<EndElement>(node);
132 return nodeCast<EndElement>(node);
NonCopyable()
Default constructor.
Definition NonCopyable.h:63
Unicode capable basic_string.
Definition Api-String.h:67
const String & namespaceUri() const
Returns the namespace Uri for this element name.
Definition EndElement.h:80
void setName(const QName &name, const Namespace &ns)
Returns the qualified element name.
Definition EndElement.h:72
EndElement & toEndElement(Node &node)
Casts a generic node to an EndElement node.
Definition EndElement.h:121
const QName & name() const
Returns the qualified element name.
Definition EndElement.h:67
EndElement * toEndElement(Node *node)
Casts a generic node to an EndElement node.
Definition EndElement.h:103
EndElement()
Constructs an empty EndElement.
Definition EndElement.h:50
void clear()
Clears all content.
Definition EndElement.h:58
const EndElement * toEndElement(const Node *node)
Casts a generic node to an EndElement node.
Definition EndElement.h:112
const EndElement & toEndElement(const Node &node)
Casts a generic node to an EndElement node.
Definition EndElement.h:130
A namespace used in an XML document.
Definition Namespace.h:47
Node(Type type)
Constructs a new Node object with the specified node type.
Definition Node.h:80
A qualified XML name.
Definition QName.h:47
Read and write XML ducuments.
Core module.
Definition Allocator.h:33