Syndication
9 #include "nodevisitor.h"
15 class SYNDICATION_NO_EXPORT Literal::LiteralPrivate
21 bool operator==(
const LiteralPrivate &other)
const
23 return text == other.text;
32 Literal::Literal(
const Literal &other)
38 Literal *Literal::clone()
const
40 return new Literal(*
this);
43 void Literal::accept(NodeVisitor *visitor, NodePtr ptr)
45 LiteralPtr lptr = ptr.staticCast<Syndication::RDF::Literal>();
46 if (!visitor->visitLiteral(lptr)) {
47 Node::accept(visitor, ptr);
51 Literal::Literal(
const QString &text)
52 : d(new LiteralPrivate)
62 Literal &Literal::operator=(
const Literal &other)
68 bool Literal::operator==(
const Node &other)
const
70 const Literal *o2 =
dynamic_cast<const Literal *
>(&other);
79 return *d == *(o2->d);
82 bool Literal::isNull()
const
87 unsigned int Literal::id()
const
92 bool Literal::isResource()
const
97 bool Literal::isProperty()
const
102 bool Literal::isLiteral()
const
107 bool Literal::isAnon()
const
112 bool Literal::isSequence()
const
119 return d ? d->text :
QString();
122 Literal::operator
QString()
const
124 return d ? d->text :
QString();
127 void Literal::setModel(
const Model & )
131 void Literal::setId(
unsigned int id)
bool operator==(const Qt3DRender::QGraphicsApiFilter &reference, const Qt3DRender::QGraphicsApiFilter &sample)
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Tue Jun 6 2023 03:56:27 by
doxygen 1.8.17 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.