• Skip to content
  • Skip to link menu
  • KDE API Reference
  • kdepimlibs-4.10.5 API Reference
  • KDE Home
  • Contact Us
 

syndication/rdf

  • Syndication
  • RDF
  • Node
Public Member Functions | Static Protected Attributes
Syndication::RDF::Node Class Reference

#include <node.h>

Inheritance diagram for Syndication::RDF::Node:
Syndication::RDF::Literal Syndication::RDF::Resource Syndication::RDF::Property Syndication::RDF::Sequence

List of all members.

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

an RDF node, abstract baseclass for all RDF node types, like resources and literals

Definition at line 43 of file node.h.


Constructor & Destructor Documentation

Syndication::RDF::Node::~Node ( )
virtual

destructor

Definition at line 36 of file node.cpp.


Member Function Documentation

void Syndication::RDF::Node::accept ( NodeVisitor *  visitor,
NodePtr  ptr 
)
virtual

Used by visitors for double dispatch.

See NodeVisitor for more information.

Parameters:
visitorthe visitor calling the method
ptra shared pointer object for this node

Reimplemented in Syndication::RDF::Resource, Syndication::RDF::Literal, Syndication::RDF::Sequence, and Syndication::RDF::Property.

Definition at line 31 of file node.cpp.

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

Implemented in Syndication::RDF::Resource, Syndication::RDF::Sequence, Syndication::RDF::Literal, and Syndication::RDF::Property.

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.

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual bool Syndication::RDF::Node::isAnon ( ) const
pure virtual

returns whether this node is an anonymous resource

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual bool Syndication::RDF::Node::isLiteral ( ) const
pure virtual

returns whether this node is a literal

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual bool Syndication::RDF::Node::isNull ( ) const
pure virtual

returns whether this node is a null node

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual bool Syndication::RDF::Node::isProperty ( ) const
pure virtual

returns whether this node is a property

Implemented in Syndication::RDF::Resource, Syndication::RDF::Literal, and Syndication::RDF::Property.

virtual bool Syndication::RDF::Node::isResource ( ) const
pure virtual

returns whether this node is a resource

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual bool Syndication::RDF::Node::isSequence ( ) const
pure virtual

returns whether this node is an RDF sequence

Implemented in Syndication::RDF::Resource, Syndication::RDF::Literal, and Syndication::RDF::Sequence.

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:
otherthe node to compare to

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual void Syndication::RDF::Node::setId ( unsigned int  id)
pure virtual

used in Model

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

virtual void Syndication::RDF::Node::setModel ( const Model &  model)
pure virtual

used in Model

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.

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.

Implemented in Syndication::RDF::Resource, and Syndication::RDF::Literal.


Member Data Documentation

unsigned int Syndication::RDF::Node::idCounter = 1
staticprotected

used to generate unique IDs for node objects

Definition at line 135 of file node.h.


The documentation for this class was generated from the following files:
  • node.h
  • node.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2013 The KDE developers.
Generated on Tue Jul 16 2013 19:20:22 by doxygen 1.8.1.1 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

syndication/rdf

Skip menu "syndication/rdf"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List

kdepimlibs-4.10.5 API Reference

Skip menu "kdepimlibs-4.10.5 API Reference"
  • akonadi
  •   contact
  •   kmime
  •   socialutils
  • kabc
  • kalarmcal
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal