Model implementation for Messages.
This model is not prepared to be inherited from.
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 |
Method | Description |
---|---|
sap.ui.model.message.MessageModel.extend |
Creates a new subclass of class sap.ui.model.message.MessageModel with name
|
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 |
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. |
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 |
Returns a metadata object for class sap.ui.model.message.MessageModel.
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 |
Sets the message data to the model.
Param | Type | DefaultValue | Description |
---|---|---|---|
oData | object |
the data to set on the model |
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 |