Class sap.ui.model.odata.type.Int16Module: sap/ui/model/odata/type/Int16

extends Int

This class represents the OData primitive type Edm.Int16.

In both sap.ui.model.odata.v2.ODataModel and sap.ui.model.odata.v4.ODataModel this type is represented as a number.


Since: 1.27.0.
Constructor Summary
new sap.ui.model.odata.type.Int16(oFormatOptions?, oConstraints?)Constructor for a primitive type Edm.Int16.
Method Summary
sap.ui.model.odata.type.Int16.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.odata.type.Int16 with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.model.odata.type.Int16.getMetadata()Returns a metadata object for class sap.ui.model.odata.type.Int16.
getName()Returns the type's name.
getRange()Returns the type's supported range as object with properties minimum and maximum.
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.model.odata.type.Int16(oFormatOptions?, oConstraints?)
Constructor for a primitive type Edm.Int16.
Parameters:
{object}oFormatOptions? format options as defined in sap.ui.core.format.NumberFormat. In contrast to NumberFormat groupingEnabled defaults to true.
{object}oConstraints? constraints; validateValue throws an error if any constraint is violated
{boolean|string}oConstraints.nullable?, Default: true if true, the value null is accepted
Method Detail
sap.ui.model.odata.type.Int16.extend(sClassName, oClassInfo?, FNMetaImpl?): function
Creates a new subclass of class sap.ui.model.odata.type.Int16 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.odata.type.Int.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.Int16.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.odata.type.Int16.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
getName(): string
Returns the type's name.
Returns:
{string} the type's name
getRange(): object
Returns the type's supported range as object with properties minimum and maximum.
Returns:
{object} the range