syndication/rdf
literal.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef SYNDICATION_RDF_LITERAL_H
00024 #define SYNDICATION_RDF_LITERAL_H
00025
00026 #include <syndication/rdf/node.h>
00027
00028 #include <boost/shared_ptr.hpp>
00029
00030 namespace Syndication {
00031 namespace RDF {
00032
00033 class Literal;
00034
00035
00036 typedef boost::shared_ptr<Literal> LiteralPtr;
00037
00038
00043 class SYNDICATION_EXPORT Literal : public Node
00044 {
00045 public:
00046
00050 Literal();
00051
00057 Literal(const Literal& other);
00058
00064 explicit Literal(const QString& text);
00065
00069 virtual ~Literal();
00070
00076 virtual Literal& operator=(const Literal& other);
00077
00082 virtual bool operator==(const Node& other) const;
00083
00087 virtual Literal* clone() const;
00088
00095 virtual void accept( NodeVisitor* visitor, NodePtr ptr);
00096
00100 virtual bool isNull() const;
00101
00106 virtual unsigned int id() const;
00107
00111 virtual bool isResource() const;
00115 virtual bool isProperty() const;
00116
00120 virtual bool isLiteral() const;
00121
00125 virtual bool isAnon() const;
00126
00130 virtual bool isSequence() const;
00131
00135 virtual operator QString() const;
00136
00140 virtual QString text() const;
00141
00146 virtual void setModel(const Model& model);
00147
00152 virtual void setId(unsigned int id);
00153
00154 private:
00155 class LiteralPrivate;
00156 typedef boost::shared_ptr<LiteralPrivate> LiteralPrivatePtr;
00157 LiteralPrivatePtr d;
00158 };
00159
00160
00161 }
00162 }
00163
00164 #endif // SYNDICATION_RDF_LITERAL_H