Nepomuk-Core
#include <resourceclass.h>
Public Member Functions | |
ResourceClass () | |
ResourceClass (const QUrl &uri) | |
~ResourceClass () | |
void | addParentResource (ResourceClass *parent) |
void | addProperty (Property *property) |
void | addReverseProperty (Property *property) |
QList< ResourceClass * > | allParentResources () const |
Property::ConstPtrList | allProperties () const |
Property::ConstPtrList | allReverseProperties () const |
QString | comment () const |
bool | generateClass () const |
QString | headerName () const |
QString | name (const QString &nameSpace=QString()) const |
ResourceClass * | parentClass (bool considerGenerateClass=true) const |
void | setComment (const QString &comment) |
void | setGenerateClass (bool generate) |
void | setParentResource (ResourceClass *parent) |
void | setUri (const QUrl &uri) |
QString | sourceName () const |
QUrl | uri () const |
Detailed Description
Represents a resource.
This class keeps all the information of a resource that has been collected by the ontology parser.
Definition at line 30 of file resourceclass.h.
Constructor & Destructor Documentation
ResourceClass::ResourceClass | ( | ) |
Definition at line 21 of file resourceclass.cpp.
ResourceClass::ResourceClass | ( | const QUrl & | uri | ) |
Definition at line 27 of file resourceclass.cpp.
ResourceClass::~ResourceClass | ( | ) |
Definition at line 34 of file resourceclass.cpp.
Member Function Documentation
void ResourceClass::addParentResource | ( | ResourceClass * | parent | ) |
Adds a parent resource to the resource.
Definition at line 82 of file resourceclass.cpp.
void ResourceClass::addProperty | ( | Property * | property | ) |
Adds a new property to the resource.
Definition at line 92 of file resourceclass.cpp.
void ResourceClass::addReverseProperty | ( | Property * | property | ) |
Adds a reverse property to the resource.
Definition at line 102 of file resourceclass.cpp.
QList< ResourceClass * > ResourceClass::allParentResources | ( | ) | const |
Returns all parent resource of the resource.
Definition at line 87 of file resourceclass.cpp.
Property::ConstPtrList ResourceClass::allProperties | ( | ) | const |
Returns the list of all properties of the resource.
Definition at line 97 of file resourceclass.cpp.
Property::ConstPtrList ResourceClass::allReverseProperties | ( | ) | const |
Returns the list of all reverse properties of the resource.
Definition at line 107 of file resourceclass.cpp.
QString ResourceClass::comment | ( | ) | const |
Returns the comment of the resource.
Definition at line 53 of file resourceclass.cpp.
bool ResourceClass::generateClass | ( | ) | const |
Returns true
if this class should be generated.
Normally this always returns true except for the base class Resource.
Definition at line 117 of file resourceclass.cpp.
QString ResourceClass::headerName | ( | ) | const |
Returns the name of the header file for this resource.
Definition at line 130 of file resourceclass.cpp.
QString ResourceClass::name | ( | const QString & | nameSpace = QString() | ) | const |
Returns the name of the resource.
- Parameters
-
nameSpace The namespace that shall be included.
Definition at line 122 of file resourceclass.cpp.
ResourceClass * ResourceClass::parentClass | ( | bool | considerGenerateClass = true | ) | const |
Returns the parent resource of the resource.
Definition at line 63 of file resourceclass.cpp.
void ResourceClass::setComment | ( | const QString & | comment | ) |
Sets the comment of the resource.
Definition at line 48 of file resourceclass.cpp.
void ResourceClass::setGenerateClass | ( | bool | generate | ) |
Sets whether code for this class shall be generated.
Definition at line 112 of file resourceclass.cpp.
void ResourceClass::setParentResource | ( | ResourceClass * | parent | ) |
Sets the parent resource of the resource.
Definition at line 58 of file resourceclass.cpp.
void ResourceClass::setUri | ( | const QUrl & | uri | ) |
Sets the uri of the resource.
Definition at line 38 of file resourceclass.cpp.
QString ResourceClass::sourceName | ( | ) | const |
Returns the name of the source file for this resource.
Definition at line 135 of file resourceclass.cpp.
QUrl ResourceClass::uri | ( | ) | const |
Returns the uri of the resource.
Definition at line 43 of file resourceclass.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:48:09 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.