describes a data type based on a hashdecl
Definition: AbstractDataField.qc.dox.h:47
 
AbstractDataField getOrNothingType()
returns a field with an "or nothing" type equivalent to the current type
 
auto getOptionValue(string opt)
returns the value of the given option on the field's type
 
auto getDefaultValue()
get default value, if any
 
setAllowedValues(list< auto > allowed_values)
Sets allowed values for enum types.
 
*hash< string, hash< DataProviderTypeOptionInfo > > getSupportedOptions()
returns supported options on the field's type
 
string getTypeName()
returns the type name
 
list< auto > allowed_values
for enum fields; raw allowed values
Definition: AbstractDataField.qc.dox.h:55
 
auto default_value
the default value for the field, if any
Definition: AbstractDataField.qc.dox.h:52
 
bool isMandatory()
returns True if the field's type must have a value
 
bool isAssignableFrom(AbstractDataProviderType t)
returns True if this field's type can be assigned from values of the argument type
 
abstract *string getDescription()
returns the description, if any
 
abstract string getName()
returns the name of the field
 
*hash< auto > getOptions()
returns options set on the field's type
 
bool isList()
returns True if this field's type is a list
 
setOptions(hash< auto > options)
sets the given options on the field's type
 
AbstractDataField getSoftType()
returns a field with a "soft" type equivalent to the current type
 
auto acceptsValue(auto value)
returns the value if the value can be assigned to the type
 
hash< string, bool > allowed_values_map
for enum fields; allowed values
Definition: AbstractDataField.qc.dox.h:60
 
hash< DataFieldInfo > getInputInfo()
returns information about the field as an input field
 
bool isAssignableFrom(Type t)
returns True if this field's type can be assigned from values of the argument type
 
hash< DataFieldInfo > getInfo()
returns information about the field
 
bool hasType()
returns True if the field's type is not a wildcard type
 
setDefaultValue(auto default_value)
sets the default value for the field
 
*list< auto > getAllowedValues()
Get allowed values.
 
abstract AbstractDataProviderType getType()
returns the type of the field
 
setOption(string opt, auto value)
sets the given option on the field's type
 
*hash< string, bool > getAllowedValueMap()
Get allowed values.
 
describes a data type
Definition: AbstractDataProviderType.qc.dox.h:206
 
Qore AbstractDataField class definition.
Definition: AbstractDataField.qc.dox.h:27
 
describes a data type
Definition: AbstractDataField.qc.dox.h:29
 
string name
the name of the field
Definition: AbstractDataField.qc.dox.h:31
 
auto default_value
the default value for the field
Definition: AbstractDataField.qc.dox.h:37
 
hash< DataTypeInfo > type
type info
Definition: AbstractDataField.qc.dox.h:43
 
*list< auto > allowed_values
for enum fields; allowed values
Definition: AbstractDataField.qc.dox.h:40
 
*string desc
the description of the field, if available
Definition: AbstractDataField.qc.dox.h:34