Type of the enum; set in prototype of each enum
The default value of this DataType. Read Only
Whether this is an 'integer' DataType. Read Only
Whether this is a 'numeric' DataType. Read Only
The name of this symbol
Whether to quote the json value when formatting this DataType for OData.
Optional function to format this DataType for OData queries.
value appropriate for OData query
Optional function to get the next value when the datatype is used as a concurrency property.
the next concurrency value, which may be a function of the previousValue.
Optional function to get the next value for key generation, if this datatype is used as a key. Uses an internal table of previous values.
value appropriate for this DataType
Optional function to normalize a data value for comparison, if its value cannot be used directly. Note that this will be called each time a property is changed, so make it fast.
value appropriate for this DataType
Optional function to convert a value from string to this DataType. Note that this will be called each time a property is changed, so make it fast.
value appropriate for this DataType
Optional function to convert a raw (server) value from string to this DataType.
value appropriate for this DataType
Return enum name and symbol name
Returns the string name of this Enum
Returns whether an Enum contains a specified symbol.
let symbol = DayOfWeek.Friday;
if (DayOfWeek.contains(symbol)) {
// do something
}
Object or symbol to test.
Whether this Enum contains the specified symbol.
Returns the DataType for a specified EDM type name.
Returns an Enum symbol given its name.
let dayOfWeek = DayOfWeek.from("Thursday");
// nowdayOfWeek === DayOfWeek.Thursday
Name for which an enum symbol should be returned.
The symbol that matches the name or 'undefined' if not found.
Returns the DataType for a specified input.
Returns the names of all of the symbols contained within this Enum.
let symbols = DayOfWeek.getNames();
All of the names of the symbols contained within this Enum.
Returns all of the symbols contained within this Enum.
let symbols = DayOfWeek.getSymbols();
All of the symbols contained within this Enum.
Returns a raw value converted to the specified DataType
Seals this enum so that no more symbols may be added to it. This should only be called after all symbols have already been added to the Enum. This method also sets the 'name' property on each of the symbols.
DayOfWeek.resolveSymbols();
Generated using TypeDoc
DataType is an 'Enum' containing all of the supported data types.