• Skip to content
  • Skip to link menu
KDE 4.7 API Reference
  • KDE API Reference
  • KDE-PIM Libraries
  • KDE Home
  • Contact Us
 

syndication/rdf

  • Syndication
  • RDF
  • Literal
Public Member Functions
Syndication::RDF::Literal Class Reference

#include <literal.h>

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

List of all members.

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

Detailed Description

a node type representing simple string values.

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


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

syndication/rdf

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

KDE-PIM Libraries

Skip menu "KDE-PIM Libraries"
  • akonadi
  •   contact
  •   kmime
  • kabc
  • kblog
  • kcal
  • kcalcore
  • kcalutils
  • kholidays
  • kimap
  • kioslave
  •   imap4
  •   mbox
  •   nntp
  • kldap
  • kmbox
  • kmime
  • kontactinterface
  • kpimidentities
  • kpimtextedit
  •   richtextbuilders
  • kpimutils
  • kresources
  • ktnef
  • kxmlrpcclient
  • mailtransport
  • microblog
  • qgpgme
  • syndication
  •   atom
  •   rdf
  •   rss2
Generated for KDE-PIM Libraries by doxygen 1.7.5
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