Syndication::Atom::EntryDocument
#include <document.h>
Public Member Functions | |
EntryDocument () | |
EntryDocument (const QDomElement &element) | |
bool | accept (DocumentVisitor *visitor) override |
QString | debugInfo () const override |
Entry | entry () const |
bool | isValid () const override |
Public Member Functions inherited from Syndication::SpecificDocument | |
virtual | ~SpecificDocument () |
Public Member Functions inherited from Syndication::ElementWrapper | |
ElementWrapper () | |
ElementWrapper (const ElementWrapper &other) | |
ElementWrapper (const QDomElement &element) | |
virtual | ~ElementWrapper () |
QString | attribute (const QString &name, const QString &defValue=QString()) const |
QString | attributeNS (const QString &nsURI, const QString &localName, const QString &defValue=QString()) const |
QString | childNodesAsXML () const |
QString | completeURI (const QString &uri) const |
const QDomElement & | element () const |
QList< QDomElement > | elementsByTagName (const QString &tagName) const |
QList< QDomElement > | elementsByTagNameNS (const QString &nsURI, const QString &tagName) const |
QString | extractElementText (const QString &tagName) const |
QString | extractElementTextNS (const QString &namespaceURI, const QString &localName) const |
QDomElement | firstElementByTagNameNS (const QString &nsURI, const QString &tagName) const |
bool | hasAttribute (const QString &name) const |
bool | hasAttributeNS (const QString &nsURI, const QString &localName) const |
bool | isNull () const |
ElementWrapper & | operator= (const ElementWrapper &other) |
bool | operator== (const ElementWrapper &other) const |
QString | text () const |
QString | xmlBase () const |
QString | xmlLang () const |
Additional Inherited Members | |
Static Public Member Functions inherited from Syndication::ElementWrapper | |
static QString | childNodesAsXML (const QDomElement &parent) |
Detailed Description
An Atom 1.0 Entry Document, containing a single Atom entry outside of the context of a feed.
Definition at line 186 of file atom/document.h.
Constructor & Destructor Documentation
◆ EntryDocument() [1/2]
Syndication::Atom::EntryDocument::EntryDocument | ( | ) |
default constructor, creates a null document, which is invalid.
- See also
- isValid()
Definition at line 265 of file atom/document.cpp.
◆ EntryDocument() [2/2]
|
explicit |
creates an Atom Entry Document wrapping an atom:entry element.
- Parameters
-
element a DOM element, should be a atom:entry element (although not enforced), otherwise this object will not parse anything useful
Definition at line 270 of file atom/document.cpp.
Member Function Documentation
◆ accept()
|
overridevirtual |
Used by visitors for double dispatch.
See DocumentVisitor for more information.
- Parameters
-
visitor the visitor calling the method
Implements Syndication::SpecificDocument.
Definition at line 275 of file atom/document.cpp.
◆ debugInfo()
|
overridevirtual |
returns a description of this entry document for debugging purposes.
- Returns
- debug string
Implements Syndication::SpecificDocument.
Definition at line 290 of file atom/document.cpp.
◆ entry()
Entry Syndication::Atom::EntryDocument::entry | ( | ) | const |
returns the single entry described in the source.
- Returns
- the entry
Definition at line 280 of file atom/document.cpp.
◆ isValid()
|
overridevirtual |
returns whether this document is valid or not.
Invalid documents do not contain any useful information.
Implements Syndication::SpecificDocument.
Definition at line 285 of file atom/document.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:03:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.