Syndication::Atom::EntryDocument

Syndication::Atom::EntryDocument Class Reference

#include <document.h>

Inheritance diagram for Syndication::Atom::EntryDocument:

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 QDomElementelement () const
 
QList< QDomElementelementsByTagName (const QString &tagName) const
 
QList< QDomElementelementsByTagNameNS (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
 
ElementWrapperoperator= (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.

Author
Frank Osterfeld

Definition at line 203 of file atom/document.h.

Constructor & Destructor Documentation

Syndication::Atom::EntryDocument::EntryDocument ( )

default constructor, creates a null document, which is invalid.

See also
isValid()

Definition at line 315 of file atom/document.cpp.

Syndication::Atom::EntryDocument::EntryDocument ( const QDomElement element)
explicit

creates an Atom Entry Document wrapping an atom:entry element.

Parameters
elementa DOM element, should be a atom:entry element (although not enforced), otherwise this object will not parse anything useful

Definition at line 319 of file atom/document.cpp.

Member Function Documentation

bool Syndication::Atom::EntryDocument::accept ( DocumentVisitor visitor)
overridevirtual

Used by visitors for double dispatch.

See DocumentVisitor for more information.

Parameters
visitorthe visitor calling the method

Implements Syndication::SpecificDocument.

Definition at line 323 of file atom/document.cpp.

QString Syndication::Atom::EntryDocument::debugInfo ( ) const
overridevirtual

returns a description of this entry document for debugging purposes.

Returns
debug string

Implements Syndication::SpecificDocument.

Definition at line 338 of file atom/document.cpp.

Entry Syndication::Atom::EntryDocument::entry ( ) const

returns the single entry described in the source.

Returns
the entry

Definition at line 328 of file atom/document.cpp.

bool Syndication::Atom::EntryDocument::isValid ( ) const
overridevirtual

returns whether this document is valid or not.

Invalid documents do not contain any useful information.

Implements Syndication::SpecificDocument.

Definition at line 333 of file atom/document.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Sun Jul 5 2020 23:02:50 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.