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>
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);
139 #endif // Pt_Xml_EndElement_h
A namespace used in an XML document.
Definition: Namespace.h:46
const String & namespaceUri() const
Returns the namespace Uri for this element name.
Definition: EndElement.h:80
Represents a closing element tag in an XML document.
Definition: EndElement.h:44
Protects derived classes from being copied.
Definition: NonCopyable.h:54
A qualified XML name.
Definition: QName.h:46
EndElement * toEndElement(Node *node)
Casts a generic node to an EndElement node.
Definition: EndElement.h:103
const QName & name() const
Returns the qualified element name.
Definition: EndElement.h:67
void clear()
Clears all content.
Definition: EndElement.h:58
const String & namespaceUri() const
Returns the namespace URI.
Definition: Namespace.h:74
const EndElement & toEndElement(const Node &node)
Casts a generic node to an EndElement node.
Definition: EndElement.h:130
EndElement & toEndElement(Node &node)
Casts a generic node to an EndElement node.
Definition: EndElement.h:121
EndElement()
Constructs an empty EndElement.
Definition: EndElement.h:50
Unicode capable basic_string.
Definition: String.h:42
void setName(const QName &name, const Namespace &ns)
Returns the qualified element name.
Definition: EndElement.h:72
XML document node.
Definition: Node.h:50
const EndElement * toEndElement(const Node *node)
Casts a generic node to an EndElement node.
Definition: EndElement.h:112