/*!
 * SAP UI development toolkit for HTML5 (SAPUI5/OpenUI5)
 * (c) Copyright 2009-2015 SAP SE or an SAP affiliate company.
 * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
 */
sap.ui.define(['jquery.sap.global','sap/ui/base/Object'],function(q,O){"use strict";var M=O.extend("sap.ui.core.message.Message",{constructor:function(p){O.apply(this,arguments);this.id=p.id?p.id:q.sap.uid();this.message=p.message;this.description=p.description;this.type=p.type;this.code=p.code;this.target=p.target;this.processor=p.processor;this.persistent=p.persistent||false;this.technical=p.technical||false;}});M.prototype.getId=function(){return this.id;};M.prototype.setMessage=function(m){this.message=m;};M.prototype.getMessage=function(){return this.message;};M.prototype.setDescription=function(d){this.description=d;};M.prototype.getDescription=function(){return this.description;};M.prototype.setType=function(t){if(t in sap.ui.core.MessageType){this.type=t;}else{q.sap.log.error("MessageType must be of type sap.ui.core.MessageType");}};M.prototype.getType=function(){return this.type;};M.prototype.setTarget=function(t){this.target=t;};M.prototype.getTarget=function(){return this.target;};M.prototype.setMessageProcessor=function(m){if(m instanceof sap.ui.core.message.MessageProcessor){this.processor=m;}else{q.sap.log.error("MessageProcessor must be an instance of sap.ui.core.message.MessageProcessor");}};M.prototype.getMessageProcessor=function(){return this.processor;};M.prototype.setCode=function(c){this.code=c;};M.prototype.getCode=function(){return this.code;};M.prototype.setPersistent=function(p){this.persistent=p;};M.prototype.getPersistent=function(){return this.persistent;};M.prototype.setTechnical=function(t){this.technical=t;};M.prototype.getTechnical=function(){return this.technical;};return M;},true);
