class sap.ui.model.odata.type.Raw

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

This class represents a placeholder for all unsupported OData primitive types. It can only be used to retrieve raw values "as is" (i.e. formatValue(vValue, "any")), but not to actually convert to or from any other representation or to validate.


Constructor

Constructor for a placeholder for all unsupported OData primitive types.

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

Must be undefined

oConstraints? object

Must be undefined


Methods Overview

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

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

formatValue

Formats the given value to the given target type.

References:

  • sap.ui.model.SimpleType#formatValue

sap.ui.model.odata.type.Raw.getMetadata

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

getName

Returns the type's name.

References:

  • sap.ui.model.Type#getName

parseValue

Method not supported

References:

  • sap.ui.model.SimpleType#parseValue

validateValue

Method not supported

References:

  • sap.ui.model.SimpleType#validateValue

sap.ui.model.odata.type.Raw.extend

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

formatValue

Formats the given value to the given target type.

References:

Param Type DefaultValue Description
vValue any

The raw value to be retrieved "as is"

sTargetType string

The target type; must be "any"

sap.ui.model.odata.type.Raw.getMetadata

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

getName

Returns the type's name.

References:

parseValue

Method not supported

References:

validateValue

Method not supported

References: