class sap.ui.model.odata.ODataPropertyBinding

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

Property binding implementation for OData format


Constructor

Do NOT call this private constructor, but rather use sap.ui.model.odata.v2.ODataModel#bindProperty instead!

new sap.ui.model.odata.ODataPropertyBinding(oModel, sPath, oContext, mParameters?)
Param Type Default Value Description
oModel sap.ui.model.Model
sPath string
oContext sap.ui.model.Context
mParameters? object

Methods Overview

Method Description
sap.ui.model.odata.ODataPropertyBinding.extend

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

sap.ui.model.odata.ODataPropertyBinding.getMetadata

Returns a metadata object for class sap.ui.model.odata.ODataPropertyBinding.

getValue

Returns the current value of the bound target

initialize

Initialize the binding. The message should be called when creating a binding. If metadata is not yet available, do nothing, method will be called again when metadata is loaded.

supportsIgnoreMessages

Returns true, as this binding supports the feature of not propagating model messages to the control.

References:

  • sap.ui.model.Binding#getIgnoreMessages
  • sap.ui.model.Binding#setIgnoreMessages

sap.ui.model.odata.ODataPropertyBinding.extend

Creates a new subclass of class sap.ui.model.odata.ODataPropertyBinding 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.PropertyBinding.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.ODataPropertyBinding.getMetadata

Returns a metadata object for class sap.ui.model.odata.ODataPropertyBinding.

getValue

Returns the current value of the bound target

initialize

Initialize the binding. The message should be called when creating a binding. If metadata is not yet available, do nothing, method will be called again when metadata is loaded.

supportsIgnoreMessages

Returns true, as this binding supports the feature of not propagating model messages to the control.

References: