class sap.ui.model.message.MessageModel

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

Model implementation for Messages.

This model is not prepared to be inherited from.


Constructor

Constructor for a new JSONModel.

new sap.ui.model.message.MessageModel(oMessageManager)
Param Type Default Value Description
oMessageManager sap.ui.core.message.MessageManager

The MessageManager instance


Methods Overview

Method Description
sap.ui.model.message.MessageModel.extend

Creates a new subclass of class sap.ui.model.message.MessageModel 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.ClientModel.extend.

sap.ui.model.message.MessageModel.getMetadata

Returns a metadata object for class sap.ui.model.message.MessageModel.

getProperty

Returns the value for the property with the given sPropertyName.

setData

Sets the message data to the model.

setProperty

Unsupported operation.

Other models provide this method to set a new value for a specific property. MessageModel does not support it as it supports the OneWay mode only.

sap.ui.model.message.MessageModel.extend

Creates a new subclass of class sap.ui.model.message.MessageModel 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.ClientModel.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.message.MessageModel.getMetadata

Returns a metadata object for class sap.ui.model.message.MessageModel.

getProperty

Returns the value for the property with the given sPropertyName.

Param Type DefaultValue Description
sPath string

The path to the property

oContext sap.ui.model.Context

The context to resolve a relative path with

setData

Sets the message data to the model.

Param Type DefaultValue Description
oData object

the data to set on the model

setProperty

Unsupported operation.

Other models provide this method to set a new value for a specific property. MessageModel does not support it as it supports the OneWay mode only.

Param Type DefaultValue Description
sPath string

Unused in this implementation

oValue object

Unused in this implementation

oContext sap.ui.model.Context

Unused in this implementation