• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • Sitemap
  • Contact Us
 

syndication/rdf

Syndication::RDF::NodeVisitor

Syndication::RDF::NodeVisitor Class Reference

Visitor interface, following the Visitor design pattern. More...

#include <nodevisitor.h>

Inherited by Syndication::RDF::Model::ModelPrivate::AddToHashesVisitor.

List of all members.


Public Member Functions

virtual void visit (NodePtr node)
virtual bool visitLiteral (LiteralPtr)
virtual bool visitNode (NodePtr node)
virtual bool visitProperty (PropertyPtr property)
virtual bool visitResource (ResourcePtr resource)
virtual bool visitSequence (SequencePtr seq)
virtual ~NodeVisitor ()

Detailed Description

Visitor interface, following the Visitor design pattern.

Use this if you want to process nodes and the way how to handle the nodes depends on it's concrete type (e.g. Resource or Literal).

TODO: insert code example

Author:
Frank Osterfeld

Definition at line 57 of file nodevisitor.h.


Constructor & Destructor Documentation

Syndication::RDF::NodeVisitor::~NodeVisitor (  )  [virtual]

destructor

Definition at line 33 of file nodevisitor.cpp.


Member Function Documentation

void Syndication::RDF::NodeVisitor::visit ( NodePtr  node  )  [virtual]

call this method to handle a node.

Depending on the concrete type of the node, a specialized visit method is called.

Parameters:
node the node to process

Definition at line 35 of file nodevisitor.cpp.

bool Syndication::RDF::NodeVisitor::visitLiteral ( LiteralPtr   )  [virtual]

reimplement this method to handle literals.

Parameters:
item the literal to visit
Returns:
whether the visitor handled the literal. Reimplementations of this method must return true.

Definition at line 40 of file nodevisitor.cpp.

bool Syndication::RDF::NodeVisitor::visitNode ( NodePtr  node  )  [virtual]

reimplement this method to handle nodes that weren't handled by the more specific method.

Parameters:
node the node to visit
Returns:
whether the visitor handled the node. Reimplementations of this method must return true.

Definition at line 45 of file nodevisitor.cpp.

bool Syndication::RDF::NodeVisitor::visitProperty ( PropertyPtr  property  )  [virtual]

reimplement this method to handle properties.

Parameters:
property the property to visit
Returns:
whether the visitor handled the property. Reimplementations of this method must return true.

Definition at line 50 of file nodevisitor.cpp.

bool Syndication::RDF::NodeVisitor::visitResource ( ResourcePtr  resource  )  [virtual]

reimplement this method to handle resources.

Parameters:
resource the resource to visit
Returns:
whether the visitor handled the resource. Reimplementations of this method must return true.

Definition at line 55 of file nodevisitor.cpp.

bool Syndication::RDF::NodeVisitor::visitSequence ( SequencePtr  seq  )  [virtual]

reimplement this method to handle sequences.

Parameters:
seq the sequence to visit
Returns:
whether the visitor handled the sequence. Reimplementations of this method must return true.

Definition at line 60 of file nodevisitor.cpp.


The documentation for this class was generated from the following files:
  • nodevisitor.h
  • nodevisitor.cpp

syndication/rdf

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  • kabc
  • kblog
  • kcal
  • kimap
  • kioslave
  •   imap4
  •   mbox
  • kldap
  • kmime
  • kpimidentities
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.5.7
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal