Syndication::RDF::NodeVisitor
#include <nodevisitor.h>
Public Member Functions | |
virtual | ~NodeVisitor () |
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) |
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
Definition at line 41 of file nodevisitor.h.
Constructor & Destructor Documentation
◆ ~NodeVisitor()
|
virtual |
destructor
Definition at line 20 of file nodevisitor.cpp.
Member Function Documentation
◆ visit()
|
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 24 of file nodevisitor.cpp.
◆ visitLiteral()
|
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 29 of file nodevisitor.cpp.
◆ visitNode()
|
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 34 of file nodevisitor.cpp.
◆ visitProperty()
|
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 39 of file nodevisitor.cpp.
◆ visitResource()
|
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 44 of file nodevisitor.cpp.
◆ visitSequence()
|
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 49 of file nodevisitor.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:18 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.