abstract class sap.ui.core.message.MessageParser

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

This is an abstract base class for MessageParser objects.


Constructor

Abstract MessageParser class to be inherited in back-end specific implementations.

new sap.ui.core.message.MessageParser()

Methods Overview

Method Description
sap.ui.core.message.MessageParser.extend

Creates a new subclass of class sap.ui.core.message.MessageParser 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.base.Object.extend.

sap.ui.core.message.MessageParser.getMetadata

Returns a metadata object for class sap.ui.core.message.MessageParser.

getProcessor

Returns the registered processor on which the events for message handling can be fired

parse

Abstract parse method must be implemented in the inheriting class.

setProcessor

This method is used by the model to register itself as MessageProcessor for this parser

sap.ui.core.message.MessageParser.extend

Creates a new subclass of class sap.ui.core.message.MessageParser 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.base.Object.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.core.message.MessageParser.getMetadata

Returns a metadata object for class sap.ui.core.message.MessageParser.

getProcessor

Returns the registered processor on which the events for message handling can be fired

parse

Abstract parse method must be implemented in the inheriting class.

Param Type DefaultValue Description
oResponse object

The response from the server containing body and headers

oRequest object

The original request that lead to this response

setProcessor

This method is used by the model to register itself as MessageProcessor for this parser

Param Type DefaultValue Description
oProcessor sap.ui.core.message.MessageProcessor

The MessageProcessor that can be used to fire events