#include <node.h>
an RDF node, abstract baseclass for all RDF node types, like resources and literals
Definition at line 30 of file node.h.
◆ ~Node()
destructor
Definition at line 22 of file node.cpp.
◆ accept()
void Node::accept |
( |
NodeVisitor * |
visitor, |
|
|
NodePtr |
ptr |
|
) |
| |
|
virtual |
Used by visitors for double dispatch.
See NodeVisitor for more information.
- Parameters
-
visitor | the visitor calling the method |
ptr | a shared pointer object for this node |
Definition at line 17 of file node.cpp.
◆ clone()
virtual Node* Syndication::RDF::Node::clone |
( |
| ) |
const |
|
pure virtual |
returns a copy of the object.
Must be implemented by subclasses to return a copy using the concrete type
◆ id()
virtual unsigned int Syndication::RDF::Node::id |
( |
| ) |
const |
|
pure virtual |
the identifier of this node.
the ID is unique per model and set by the associated model at creation time.
◆ isAnon()
virtual bool Syndication::RDF::Node::isAnon |
( |
| ) |
const |
|
pure virtual |
returns whether this node is an anonymous resource
◆ isLiteral()
virtual bool Syndication::RDF::Node::isLiteral |
( |
| ) |
const |
|
pure virtual |
returns whether this node is a literal
◆ isNull()
virtual bool Syndication::RDF::Node::isNull |
( |
| ) |
const |
|
pure virtual |
returns whether this node is a null node
◆ isProperty()
virtual bool Syndication::RDF::Node::isProperty |
( |
| ) |
const |
|
pure virtual |
returns whether this node is a property
◆ isResource()
virtual bool Syndication::RDF::Node::isResource |
( |
| ) |
const |
|
pure virtual |
returns whether this node is a resource
◆ isSequence()
virtual bool Syndication::RDF::Node::isSequence |
( |
| ) |
const |
|
pure virtual |
returns whether this node is an RDF sequence
◆ operator==()
virtual bool Syndication::RDF::Node::operator== |
( |
const Node & |
other | ) |
const |
|
pure virtual |
checks whether two nodes are equal.
The meaning of equality is defined per subclass (e.g. equality of URIs, IDs etc.)
- Parameters
-
other | the node to compare to |
◆ setId()
virtual void Syndication::RDF::Node::setId |
( |
unsigned int |
id | ) |
|
|
pure virtual |
◆ setModel()
virtual void Syndication::RDF::Node::setModel |
( |
const Model & |
model | ) |
|
|
pure virtual |
◆ text()
virtual QString Syndication::RDF::Node::text |
( |
| ) |
const |
|
pure virtual |
returns a textual representation of the node.
This is the literal string for literals, and a null string for other node types.
◆ idCounter
unsigned int Node::idCounter = 1 |
|
staticprotected |
used to generate unique IDs for node objects
Definition at line 120 of file node.h.
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Mon May 8 2023 03:57:11 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.