class sap.ui.model.odata.type.Byte

Visiblity: public
UX Guidelines:
Implements:
Available since: N/A
Module: sap/ui/model/odata/type/Byte
Application Component: CA-UI5-COR

This class represents the OData primitive type Edm.Byte.

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


Constructor

Constructor for a primitive type Edm.Byte.

new sap.ui.model.odata.type.Byte(oFormatOptions?, oConstraints?)
Param Type Default Value Description
oFormatOptions? object

format options as defined in sap.ui.core.format.NumberFormat

oConstraints? object

constraints; validateValue throws an error if any constraint is violated

nullable? boolean string true

if true, the value null is accepted


Methods Overview

Method Description
sap.ui.model.odata.type.Byte.extend

Creates a new subclass of class sap.ui.model.odata.type.Byte 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.

sap.ui.model.odata.type.Byte.getMetadata

Returns a metadata object for class sap.ui.model.odata.type.Byte.

getName

Returns the type's name.

getRange

Returns the type's supported range as object with properties minimum and maximum.

sap.ui.model.odata.type.Byte.extend

Creates a new subclass of class sap.ui.model.odata.type.Byte 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.

Param Type DefaultValue Description
sClassName string

Name of the class being created

oClassInfo object

Object literal with information about the class

FNMetaImpl function

Constructor function for the metadata object; if not given, it defaults to the metadata implementation used by this class

sap.ui.model.odata.type.Byte.getMetadata

Returns a metadata object for class sap.ui.model.odata.type.Byte.

getName

Returns the type's name.

getRange

Returns the type's supported range as object with properties minimum and maximum.