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

syndication/rdf

  • Syndication
  • RDF
  • Literal
Public Member Functions | List of all members
Syndication::RDF::Literal Class Reference

#include <literal.h>

Inheritance diagram for Syndication::RDF::Literal:
Inheritance graph
[legend]

Public Member Functions

 Literal ()
 
 Literal (const Literal &other)
 
 Literal (const QString &text)
 
virtual ~Literal ()
 
virtual void accept (NodeVisitor *visitor, NodePtr ptr)
 
virtual Literal * clone () const
 
virtual unsigned int id () const
 
virtual bool isAnon () const
 
virtual bool isLiteral () const
 
virtual bool isNull () const
 
virtual bool isProperty () const
 
virtual bool isResource () const
 
virtual bool isSequence () const
 
virtual operator QString () const
 
virtual Literal & operator= (const Literal &other)
 
virtual bool operator== (const Node &other) const
 
virtual void setId (unsigned int id)
 
virtual void setModel (const Model &model)
 
virtual QString text () const
 
- Public Member Functions inherited from Syndication::RDF::Node
virtual ~Node ()
 

Additional Inherited Members

- Static Protected Attributes inherited from Syndication::RDF::Node
static unsigned int idCounter = 1
 

Detailed Description

a node type representing simple string values.

Literals can be object of statement, but neither subject nor predicate.

Definition at line 44 of file literal.h.

Constructor & Destructor Documentation

Syndication::RDF::Literal::Literal ( )

creates a null literal.

text() will return a null string.

Definition at line 44 of file literal.cpp.

Syndication::RDF::Literal::Literal ( const Literal &  other)

copies a literal node

Parameters
otherthe literal node to copy

Definition at line 48 of file literal.cpp.

Syndication::RDF::Literal::Literal ( const QString &  text)
explicit

creates a new literal node with a given text

Parameters
textthe literal string

Definition at line 65 of file literal.cpp.

Syndication::RDF::Literal::~Literal ( )
virtual

destructor

Definition at line 71 of file literal.cpp.

Member Function Documentation

void Syndication::RDF::Literal::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 from Syndication::RDF::Node.

Definition at line 58 of file literal.cpp.

Literal * Syndication::RDF::Literal::clone ( ) const
virtual

clones the literal node.

Implements Syndication::RDF::Node.

Definition at line 53 of file literal.cpp.

unsigned int Syndication::RDF::Literal::id ( ) const
virtual

the identifier of this node.

the ID is unique per model and set by the associated model at creation time.

Implements Syndication::RDF::Node.

Definition at line 98 of file literal.cpp.

bool Syndication::RDF::Literal::isAnon ( ) const
virtual

returns false, literals are not anonymous resources

Implements Syndication::RDF::Node.

Definition at line 118 of file literal.cpp.

bool Syndication::RDF::Literal::isLiteral ( ) const
virtual

returns true for literals

Implements Syndication::RDF::Node.

Definition at line 113 of file literal.cpp.

bool Syndication::RDF::Literal::isNull ( ) const
virtual

returns whether this node is a null node

Implements Syndication::RDF::Node.

Definition at line 93 of file literal.cpp.

bool Syndication::RDF::Literal::isProperty ( ) const
virtual

returns false, as a literal is not a property

Implements Syndication::RDF::Node.

Definition at line 108 of file literal.cpp.

bool Syndication::RDF::Literal::isResource ( ) const
virtual

returns false, as a literal is not a resource

Implements Syndication::RDF::Node.

Definition at line 103 of file literal.cpp.

bool Syndication::RDF::Literal::isSequence ( ) const
virtual

returns false, literals are not sequences

Implements Syndication::RDF::Node.

Definition at line 123 of file literal.cpp.

Syndication::RDF::Literal::operator QString ( ) const
virtual

implicit conversion to string.

returns text()

Definition at line 133 of file literal.cpp.

Literal & Syndication::RDF::Literal::operator= ( const Literal &  other)
virtual

assigns another literal

Parameters
otherthe literal to assign

Definition at line 75 of file literal.cpp.

bool Syndication::RDF::Literal::operator== ( const Node &  other) const
virtual

two literal nodes are equal iff their text and ID's are equal.

Implements Syndication::RDF::Node.

Definition at line 81 of file literal.cpp.

void Syndication::RDF::Literal::setId ( unsigned int  id)
virtual

used in Model

Implements Syndication::RDF::Node.

Definition at line 142 of file literal.cpp.

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

used in Model

Implements Syndication::RDF::Node.

Definition at line 138 of file literal.cpp.

QString Syndication::RDF::Literal::text ( ) const
virtual

the string value of the literal

Implements Syndication::RDF::Node.

Definition at line 128 of file literal.cpp.


The documentation for this class was generated from the following files:
  • literal.h
  • literal.cpp
This file is part of the KDE documentation.
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.

syndication/rdf

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

kdepimlibs API Reference

Skip menu "kdepimlibs 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

Search



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