syndication/rdf
22 #ifndef SYNDICATION_RDF_NODE_H
23 #define SYNDICATION_RDF_NODE_H
25 #include <QtCore/QString>
26 #include <syndication/ksyndication_export.h>
27 #include <boost/shared_ptr.hpp>
29 namespace Syndication {
36 typedef boost::shared_ptr<Node> NodePtr;
43 class SYNDICATION_EXPORT
Node
58 virtual void accept(
NodeVisitor* visitor, NodePtr ptr);
66 virtual bool operator==(
const Node& other)
const = 0;
73 virtual Node* clone()
const = 0;
78 virtual bool isNull()
const = 0;
83 virtual bool isResource()
const = 0;
88 virtual bool isProperty()
const = 0;
93 virtual bool isLiteral()
const = 0;
98 virtual bool isSequence()
const = 0;
103 virtual bool isAnon()
const = 0;
109 virtual unsigned int id()
const = 0;
116 virtual QString text()
const = 0;
122 virtual void setModel(
const Model& model) = 0;
128 virtual void setId(
unsigned int id) = 0;
141 #endif // SYNDICATION_RDF_NODE_H
An RDF model, a set of RDF statements.
Visitor interface, following the Visitor design pattern.
static unsigned int idCounter
used to generate unique IDs for node objects
an RDF node, abstract baseclass for all RDF node types, like resources and literals ...
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:38 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.