KIO
PredicateProperties Class Reference
#include <predicateproperties.h>
Detailed Description
A predicate is part of the RDF trinity: subject, predicate, object.It is identified by URI and it defines the type of the relationship. For file metadata, a predicate can be seen as a fieldname. It has a data type, a description, a short id, a cardinality
Definition at line 34 of file predicateproperties.h.
Public Types | |
enum | Attributes { Addable = 1, Removable = 2, Modifiable = 4, Cumulative = 8, Averaged = 16, MultiLine = 32, SqueezeText = 64 } |
Public Member Functions | |
uint | attributes () const |
QValidator * | createValidator () const |
const QString & | description () const |
bool | isValid () const |
const QString & | key () const |
uint | maxCardinality () const |
uint | minCardinality () const |
const QString & | name () const |
const PredicateProperties & | operator= (const PredicateProperties &p) |
const PredicateProperties & | parent () const |
PredicateProperties (const PredicateProperties &p) | |
PredicateProperties (const QString &predicate=QString()) | |
const QStringList & | suggestedValues () const |
QVariant::Type | type () const |
const QString & | unit () const |
~PredicateProperties () |
Member Enumeration Documentation
This enum is used to specify some attributes that an item can have, which fit neither in the Hint nor in the Unit enum.
- Enumerator:
Definition at line 45 of file predicateproperties.h.
Constructor & Destructor Documentation
Definition at line 44 of file predicateproperties.cpp.
PredicateProperties::PredicateProperties | ( | const PredicateProperties & | p | ) |
Definition at line 50 of file predicateproperties.cpp.
PredicateProperties::~PredicateProperties | ( | ) |
Definition at line 53 of file predicateproperties.cpp.
Member Function Documentation
uint PredicateProperties::attributes | ( | ) | const |
Get the attributes of this group (see Attributes).
- Returns:
- the attributes
Definition at line 82 of file predicateproperties.cpp.
QValidator * PredicateProperties::createValidator | ( | ) | const |
Definition at line 90 of file predicateproperties.cpp.
const QString& PredicateProperties::description | ( | ) | const |
Localized description of the predicate.
bool PredicateProperties::isValid | ( | ) | const |
Definition at line 98 of file predicateproperties.cpp.
const QString& PredicateProperties::key | ( | ) | const |
Key associated with this value.
uint PredicateProperties::maxCardinality | ( | ) | const |
Definition at line 77 of file predicateproperties.cpp.
uint PredicateProperties::minCardinality | ( | ) | const |
Definition at line 72 of file predicateproperties.cpp.
const QString & PredicateProperties::name | ( | ) | const |
const PredicateProperties & PredicateProperties::operator= | ( | const PredicateProperties & | p | ) |
Definition at line 56 of file predicateproperties.cpp.
const PredicateProperties & PredicateProperties::parent | ( | ) | const |
Definition at line 94 of file predicateproperties.cpp.
const QStringList & PredicateProperties::suggestedValues | ( | ) | const |
Definition at line 67 of file predicateproperties.cpp.
QVariant::Type PredicateProperties::type | ( | ) | const |
const QString& PredicateProperties::unit | ( | ) | const |
Return a url that identifies the unit in which this property is expressed.
The documentation for this class was generated from the following files: