Abstract Class sap.ui.core.message.MessageParserModule: sap/ui/core/message/MessageParser
This is an abstract base class for MessageParser objects.
Constructor Summary
new sap.ui.core.message.MessageParser()Abstract MessageParser class to be inherited in back-end specific implementations.
Method Summary
sap.ui.core.message.MessageParser.extend(sClassName, oClassInfo?, FNMetaImpl?)Creates a new subclass of class sap.ui.core.message.MessageParser with name
sClassName
and enriches it with the information contained in oClassInfo
.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
setProcessor(oProcessor)This method is used by the model to register itself as MessageProcessor for this parser
Methods borrowed from class sap.ui.base.Object
Constructor Detail
Method Detail
sap.ui.core.message.MessageParser.extend(sClassName, oClassInfo?, FNMetaImpl?): function
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.
Parameters:
{string} | sClassName | Name of the class being created |
{object} | oClassInfo? | Object literal with information about the class |
{function} | FNMetaImpl? | Constructor function for the metadata object; if not given, it defaults to sap.ui.core.ElementMetadata |
Returns:
{function} | Created class / constructor function |
sap.ui.core.message.MessageParser.getMetadata(): sap.ui.base.Metadata
Returns a metadata object for class sap.ui.core.message.MessageParser.
Returns:
{sap.ui.base.Metadata} | Metadata object describing this class |
getProcessor(): sap.ui.message.MessageProcessor
Returns the registered processor on which the events for message handling can be fired
Returns:
{sap.ui.message.MessageProcessor} | The currently set MessageProcessor or null if none is set |
setProcessor(oProcessor): sap.ui.message.MessagePaser
This method is used by the model to register itself as MessageProcessor for this parser
Parameters:
{sap.ui.message.MessageProcessor} | oProcessor | The MessageProcessor that can be used to fire events |
Returns:
{sap.ui.message.MessagePaser} | Instance reference for method chaining |