class sap.ui.model.base.ManagedObjectModel

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

The ManagedObjectModel class can be used for data binding of properties and aggregations for managed objects.

Provides model access to a given sap.ui.base.ManagedObject. Such access allows to bind to properties and aggregations of this object.


Constructor

The ManagedObjectModel class allows you to bind to properties and aggregations of managed objects.

new sap.ui.model.base.ManagedObjectModel(oObject, oData?)
Param Type Default Value Description
oObject sap.ui.base.ManagedObject

the managed object models root object

oData? object

an object for custom data


Methods Overview

Method Description
checkUpdate

Private method iterating the registered bindings of this model instance and initiating their check for update

sap.ui.model.base.ManagedObjectModel.extend

Creates a new subclass of class sap.ui.model.base.ManagedObjectModel 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.json.JSONModel.extend.

sap.ui.model.base.ManagedObjectModel.getMetadata

Returns a metadata object for class sap.ui.model.base.ManagedObjectModel.

setData

Inserts the user-defined custom data into the model.

checkUpdate

Private method iterating the registered bindings of this model instance and initiating their check for update

Param Type DefaultValue Description
bForceUpdate boolean
bAsync boolean
fnFilter function

an optional test function to filter the binding

sap.ui.model.base.ManagedObjectModel.extend

Creates a new subclass of class sap.ui.model.base.ManagedObjectModel 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.json.JSONModel.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.base.ManagedObjectModel.getMetadata

Returns a metadata object for class sap.ui.model.base.ManagedObjectModel.

setData

Inserts the user-defined custom data into the model.

Param Type DefaultValue Description
oData object

The data as JSON object to be set on the model

bMerge boolean false

If set to true, the data is merged instead of replaced