Nepomuk-Core
#include <property.h>
Public Types | |
typedef QList< const Property * > | ConstPtrList |
Public Member Functions | |
Property () | |
QString | comment () const |
ResourceClass * | domain (bool onlyReturnGeneratedClass=false) const |
bool | hasSimpleType () const |
Property * | inverseProperty () const |
bool | isList () const |
QString | literalRange () const |
QString | literalTypeConversionMethod () const |
QString | name () const |
ResourceClass * | range () const |
void | setComment (const QString &comment) |
void | setDomain (ResourceClass *domain) |
void | setInverseProperty (Property *property) |
void | setIsList (bool isList) |
void | setLiteralRange (const QString &range) |
void | setRange (ResourceClass *type) |
void | setUri (const QUrl &uri) |
QString | typeString (bool simple=false, const QString &nameSpace=QString()) const |
QUrl | uri () const |
Detailed Description
Represents the property of a resource.
This class keeps all the information of a resource property that has been collected by the ontology parser.
Definition at line 29 of file rcgen/property.h.
Member Typedef Documentation
typedef QList<const Property*> Property::ConstPtrList |
Definition at line 32 of file rcgen/property.h.
Constructor & Destructor Documentation
Property::Property | ( | ) |
Creates a new property.
Definition at line 26 of file rcgen/property.cpp.
Member Function Documentation
QString Property::comment | ( | ) | const |
Returns the comment of the property.
Definition at line 78 of file rcgen/property.cpp.
ResourceClass * Property::domain | ( | bool | onlyReturnGeneratedClass = false | ) | const |
Returns the domain resource the property belongs to.
Definition at line 98 of file rcgen/property.cpp.
bool Property::hasSimpleType | ( | ) | const |
Returns whether the property is of simple type.
Definition at line 159 of file rcgen/property.cpp.
Property * Property::inverseProperty | ( | ) | const |
Returns the inverse property of this property.
Definition at line 114 of file rcgen/property.cpp.
bool Property::isList | ( | ) | const |
Returns whether the property is a list of values.
Definition at line 88 of file rcgen/property.cpp.
QString Property::literalRange | ( | ) | const |
Returns the literal range of the property (the name of the Qt type to be used.)
Definition at line 68 of file rcgen/property.cpp.
QString Property::literalTypeConversionMethod | ( | ) | const |
Returns the conversion method of the property.
Definition at line 164 of file rcgen/property.cpp.
QString Property::name | ( | ) | const |
Returns the name of the property.
Definition at line 119 of file rcgen/property.cpp.
ResourceClass * Property::range | ( | ) | const |
Returns the scope of the property.
Definition at line 63 of file rcgen/property.cpp.
void Property::setComment | ( | const QString & | comment | ) |
Sets the comment of the property.
Definition at line 73 of file rcgen/property.cpp.
void Property::setDomain | ( | ResourceClass * | domain | ) |
Sets the domain the property belongs to.
Definition at line 93 of file rcgen/property.cpp.
void Property::setInverseProperty | ( | Property * | property | ) |
Sets the inverse property of this property.
Definition at line 109 of file rcgen/property.cpp.
void Property::setIsList | ( | bool | isList | ) |
Sets whether the property is a list of values.
Definition at line 83 of file rcgen/property.cpp.
void Property::setLiteralRange | ( | const QString & | range | ) |
Set the literal range of the property.
Cannot be used with setRange at the same time.
- Parameters
-
Name of the Qt type to use
Definition at line 58 of file rcgen/property.cpp.
void Property::setRange | ( | ResourceClass * | type | ) |
Sets the type of the property.
Definition at line 53 of file rcgen/property.cpp.
void Property::setUri | ( | const QUrl & | uri | ) |
Creates a new property of a given type and with a given uri.
- Parameters
-
uri The uri that defines the property. type The type the property is of. Sets the uri of the property.
Definition at line 43 of file rcgen/property.cpp.
QString Property::typeString | ( | bool | simple = false , |
const QString & | nameSpace = QString() |
||
) | const |
Retrieve a string representation of the range.
Handles both literal ranges and class ranges. Also ResourceClass::generateClass is taken into account.
Definition at line 132 of file rcgen/property.cpp.
QUrl Property::uri | ( | ) | const |
Returns the uri of the property.
Definition at line 48 of file rcgen/property.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.