Syndication::RDF::Node
#include <node.h>
Public Member Functions | |
virtual | ~Node () |
virtual void | accept (NodeVisitor *visitor, NodePtr ptr) |
virtual Node * | clone () const =0 |
virtual unsigned int | id () const =0 |
virtual bool | isAnon () const =0 |
virtual bool | isLiteral () const =0 |
virtual bool | isNull () const =0 |
virtual bool | isProperty () const =0 |
virtual bool | isResource () const =0 |
virtual bool | isSequence () const =0 |
virtual void | setId (unsigned int id)=0 |
virtual void | setModel (const Model &model)=0 |
virtual QString | text () const =0 |
Static Protected Attributes | |
static unsigned int | idCounter = 1 |
Detailed Description
Constructor & Destructor Documentation
◆ ~Node()
Member Function Documentation
◆ accept()
|
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
Reimplemented in Syndication::RDF::Literal, Syndication::RDF::Property, Syndication::RDF::Resource, and Syndication::RDF::Sequence.
◆ clone()
|
pure virtual |
returns a copy of the object.
Must be implemented by subclasses to return a copy using the concrete type
Implemented in Syndication::RDF::Literal, Syndication::RDF::Property, Syndication::RDF::Resource, and Syndication::RDF::Sequence.
◆ id()
|
pure virtual |
the identifier of this node.
the ID is unique per model and set by the associated model at creation time.
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ isAnon()
|
pure virtual |
returns whether this node is an anonymous resource
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ isLiteral()
|
pure virtual |
returns whether this node is a literal
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ isNull()
|
pure virtual |
returns whether this node is a null node
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ isProperty()
|
pure virtual |
returns whether this node is a property
Implemented in Syndication::RDF::Literal, Syndication::RDF::Property, and Syndication::RDF::Resource.
◆ isResource()
|
pure virtual |
returns whether this node is a resource
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ isSequence()
|
pure virtual |
returns whether this node is an RDF sequence
Implemented in Syndication::RDF::Literal, Syndication::RDF::Resource, and Syndication::RDF::Sequence.
◆ setId()
|
pure virtual |
used in Model
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ setModel()
|
pure virtual |
used in Model
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
◆ text()
|
pure virtual |
returns a textual representation of the node.
This is the literal string for literals, and a null string for other node types.
Implemented in Syndication::RDF::Literal, and Syndication::RDF::Resource.
Member Data Documentation
◆ idCounter
|
staticprotected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Dec 6 2024 12:02:22 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.