1 #ifndef FACETSCONTROLLER_H 2 #define FACETSCONTROLLER_H 10 class RecordsController;
11 class TypesController;
32 QList<Facet*>
getFacets(
const QString& targetType)
const;
40 QVariant
getFacetValue(
const QString& fieldType,
const QString& facetKey)
const;
54 QString
validateFieldValue(
const QString& fieldType,
const QVariant& fieldValue)
const;
64 #endif // FACETSCONTROLLER_H Definition: commandlineoptions.h:6
Controller for adding, updating and removing records.
Definition: recordscontroller.h:21
QVariant getFacetValue(const QString &fieldType, const QString &facetKey) const
Gets the restriction of the specified domain of the specified type (e.g. minimum value of an integer)...
Definition: facetscontroller.cpp:57
void registerFacet(Facet *facet)
Adds a new facet to be applied to custom types.
Definition: facetscontroller.cpp:98
QList< Facet * > getFacets(const QString &targetType) const
Gets a list of all facets that may apply to the specified type.
Definition: facetscontroller.cpp:29
Controller for adding, updating and removing custom types.
Definition: typescontroller.h:14
QString validateFieldValue(const QString &fieldType, const QVariant &fieldValue) const
Validates the specified field value against the domain restrictions imposed by the facets of its type...
Definition: facetscontroller.cpp:103
Controller for validating type facets.
Definition: facetscontroller.h:16
Restricts the domain of a custom type.
Definition: facet.h:14
FacetsController(const RecordsController &recordsController, const TypesController &typesController)
Constructs a new controller for validating type facets.
Definition: facetscontroller.cpp:13