Class sap.ui.model.odata.type.ODataTypeModule: sap/ui/model/odata/type/ODataType
extends SimpleType
known direct subclasses: Boolean, Date, DateTimeBase, Decimal, Double, Guid, Int, Int64, Raw, Single, String, Time, TimeOfDay
This class is an abstract base class for all OData primitive types (see OData V4 Edm Types and OData V2 Edm Types). All subtypes implement the interface of sap.ui.model.SimpleType. That means they implement next to the constructor:
All ODataTypes are immutable. All format options and constraints are given to the constructor, they cannot be modified later.
 All ODataTypes use a locale-specific message when throwing an error caused by invalid user input (e.g. if Double.parseValue cannot parse the given value to a number, or if any type's validateValue gets a null, but the constraint nullable is false).
Since: 1.27.0.
Constructor Summary
new sap.ui.model.odata.type.ODataType(oFormatOptions?, oConstraints?)Constructor for a new 
ODataType.Method Summary
sap.ui.model.odata.type.ODataType.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.odata.type.ODataType with name 
sClassName and enriches it with the information contained in oClassInfo.sap.ui.model.odata.type.ODataType.getMetadata()Returns a metadata object for class sap.ui.model.odata.type.ODataType.
Methods borrowed from class sap.ui.model.SimpleType
Methods borrowed from class sap.ui.model.Type
Methods borrowed from class sap.ui.base.Object
 Constructor Detail 
 Method Detail 
 sap.ui.model.odata.type.ODataType.extend(sClassName, oClassInfo?, FNMetaImpl?): function
 Creates a new subclass of class sap.ui.model.odata.type.ODataType with name 
sClassName and enriches it with the information contained in oClassInfo. oClassInfo might contain the same kind of information as described in sap.ui.model.SimpleType.extend. 
Parameters:
| {string} | sClassName | Name of the class being created | 
| {object} | oClassInfo? | Object literal with information about the class | 
| {function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata | 
Returns:
| {function} | Created class / constructor function | 
 sap.ui.model.odata.type.ODataType.getMetadata(): sap.ui.base.Metadata
 Returns a metadata object for class sap.ui.model.odata.type.ODataType. 
Returns:
| {sap.ui.base.Metadata} | Metadata object describing this class |