122 static const QString FacetBaseType;
123 static const QString FacetEnumeration;
124 static const QString FacetItemType;
125 static const QString FacetKeyType;
126 static const QString FacetValueType;
134 return e1.
name.toLower() < e2.
name.toLower();
138 #endif // CUSTOMTYPE_H Definition: commandlineoptions.h:6
void setKeyType(const QString &keyType)
Sets the Key Type fundamental facet of this type.
Definition: customtype.cpp:113
void setBaseType(const QString &baseType)
Sets the BaseType fundamental facet of this type.
Definition: customtype.cpp:97
bool isEnumeration() const
Checks whether this custom type is an enumeration.
Definition: customtype.cpp:81
QVariantMap constrainingFacets
Values of constraining facets of this type, e.g. maximum value of an integer.
Definition: customtype.h:30
void setEnumeration(const QStringList &enumeration)
Sets the Enumeration fundamental facet of this type.
Definition: customtype.cpp:102
QString typeSetName
Name of the set this custom type belongs to.
Definition: customtype.h:35
QString name
Name of this custom type.
Definition: customtype.h:20
bool isDerivedType() const
Checks whether this custom type is a derived type.
Definition: customtype.cpp:76
User-defined type of any field.
Definition: customtype.h:14
QString getBaseType() const
Convenience function for retrieving the BaseType fundamental facet of this type, if available...
Definition: customtype.cpp:13
bool isMap() const
Checks whether this custom type is a map type.
Definition: customtype.cpp:91
QVariantMap fundamentalFacets
Values of fundamental facets of this type, e.g. type of the keys of a map.
Definition: customtype.h:25
void setValueType(const QString &valueType)
Sets the Value Type fundamental facet of this type.
Definition: customtype.cpp:118
QString getItemType() const
Convenience function for retrieving the Item Type fundamental facet of this type, if available...
Definition: customtype.cpp:46
QString getKeyType() const
Convenience function for retrieving the Key Type fundamental facet of this type, if available...
Definition: customtype.cpp:56
void setItemType(const QString &itemType)
Sets the Item Type fundamental facet of this type.
Definition: customtype.cpp:108
QString getValueType() const
Convenience function for retrieving the Value Type fundamental facet of this type, if available. Returns an empty string, if not.
Definition: customtype.cpp:66
QStringList getEnumeration() const
Convenience function for retrieving the Enumeration fundamental facet of this type, if available. Returns an empty list, if not.
Definition: customtype.cpp:23
bool isList() const
Checks whether this custom type is a list type.
Definition: customtype.cpp:86