Class sap.ui.model.odata.type.RawModule: sap/ui/model/odata/type/Raw

extends ODataType

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.


Since: 1.37.0.
Constructor Summary
new sap.ui.model.odata.type.Raw(oFormatOptions?, oConstraints?)Constructor for a placeholder for all unsupported OData primitive types.
Method Summary
sap.ui.model.odata.type.Raw.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.model.odata.type.Raw with name sClassName and enriches it with the information contained in oClassInfo.
sap.ui.model.odata.type.Raw.getMetadata()Returns a metadata object for class sap.ui.model.odata.type.Raw.
formatValue(vValue, sTargetType)Formats the given value to the given target type.
getName()Returns the type's name.
parseValue()Method not supported
validateValue()Method not supported
Methods borrowed from class sap.ui.base.Object
Constructor Detail
new sap.ui.model.odata.type.Raw(oFormatOptions?, oConstraints?)
Constructor for a placeholder for all unsupported OData primitive types.
Parameters:
{object}oFormatOptions? Must be undefined
{object}oConstraints? Must be undefined
Exceptions:
{Error}
In case any arguments are given
Method Detail
sap.ui.model.odata.type.Raw.extend(sClassName, oClassInfo?, FNMetaImpl?): function
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.

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.Raw.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.model.odata.type.Raw.
Returns:
{sap.ui.base.Metadata} Metadata object describing this class
formatValue(vValue, sTargetType): any
Formats the given value to the given target type.
Parameters:
{any}vValue The raw value to be retrieved "as is"
{string}sTargetType The target type; must be "any"
Since:
1.37.0
Exceptions:
{sap.ui.model.FormatException} If sTargetType is not "any"
Returns:
{any} The raw value "as is"
See:
sap.ui.model.SimpleType#formatValue
getName(): string
Returns the type's name.
Since:
1.37.0
Returns:
{string} The type's name
See:
sap.ui.model.Type#getName
parseValue()
Method not supported
Since:
1.37.0
Exceptions:
{sap.ui.model.ParseException}
See:
sap.ui.model.SimpleType#parseValue
validateValue()
Method not supported
Since:
1.37.0
Exceptions:
{sap.ui.model.ValidateException}
See:
sap.ui.model.SimpleType#validateValue