00001
00023 #ifndef _LIBGNURDF_CPP_ELEMENT_H_
00024 #define _LIBGNURDF_CPP_ELEMENT_H_
00025
00026 #include <libgnurdf/element.h>
00027
00028 namespace Gnurdf {
00029
00030 class Element
00031 {
00032 public:
00033 Element();
00034 Element(RdfElement *element);
00035 ~Element();
00036
00037 void setName(const char *name);
00038 const char *getName() const;
00039
00040 void setValue(const char *value);
00041 char *getValue() const;
00042
00043 void setType(int type);
00044 int getType() const;
00045
00046 void setNamespace(Namespace *ns);
00047 Namespace *getNamespace() const;
00048
00049 void setResource(const char *uri);
00050 char *getResource() const;
00051
00052 private:
00053 RdfElement *element;
00054 };
00055
00056 };
00057
00058 #endif
00059