Syndication
11#include "nodevisitor.h"
18#include <QWeakPointer>
24class SYNDICATION_NO_EXPORT
Resource::ResourcePrivate
32 bool operator==(
const ResourcePrivate &other)
const
34 if (!isAnon && !other.isAnon) {
35 return uri == other.uri;
37 return id == other.id;
42Resource::Resource(
const Resource &other)
53Resource::Resource(
const QString &uri)
54 : d(new ResourcePrivate)
77bool Resource::operator==(
const Resource &other)
const
82 return *d == *(other.d);
85bool Resource::hasProperty(PropertyPtr property)
const
94 return m->resourceHasProperty(
this,
property);
99 StatementPtr ptr(
new Statement());
107 return m->resourceProperty(
this,
property);
120 return m->resourceProperties(
this,
property);
128void Resource::accept(NodeVisitor *visitor, NodePtr ptr)
131 if (!visitor->visitResource(rptr)) {
132 Node::accept(visitor, ptr);
136unsigned int Resource::id()
const
138 return d ? d->id : 0;
141bool Resource::isNull()
const
146Model Resource::model()
const
163bool Resource::isResource()
const
168bool Resource::isProperty()
const
173bool Resource::isLiteral()
const
178bool Resource::isAnon()
const
180 return d ? d->isAnon :
false;
183bool Resource::isSequence()
const
188void Resource::setModel(
const Model &model)
195void Resource::setId(
unsigned int id)
QVariant property(const char *name) const const
QSharedPointer< X > staticCast() const const
bool isNull() const const
bool operator==(const QGraphicsApiFilter &reference, const QGraphicsApiFilter &sample)
QString toString(StringFormat mode) const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:14:15 by
doxygen 1.10.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.