syndication/rdf
#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 bool | operator== (const Node &other) 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
Member Function Documentation
|
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::Resource, Syndication::RDF::Literal, Syndication::RDF::Sequence, and Syndication::RDF::Property.
|
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::Resource, Syndication::RDF::Sequence, Syndication::RDF::Literal, and Syndication::RDF::Property.
|
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::Resource, and Syndication::RDF::Literal.
|
pure virtual |
returns whether this node is an anonymous resource
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
pure virtual |
returns whether this node is a literal
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
pure virtual |
returns whether this node is a null node
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
pure virtual |
returns whether this node is a property
Implemented in Syndication::RDF::Resource, Syndication::RDF::Literal, and Syndication::RDF::Property.
|
pure virtual |
returns whether this node is a resource
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
pure virtual |
returns whether this node is an RDF sequence
Implemented in Syndication::RDF::Resource, Syndication::RDF::Literal, and Syndication::RDF::Sequence.
|
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
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
pure virtual |
used in Model
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
pure virtual |
used in Model
Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.
|
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::Resource, and Syndication::RDF::Literal.
Member Data Documentation
|
staticprotected |
The documentation for this class was generated from the following files:
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.