/*!
 * 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','./ComponentMetadata'],function(q,C){"use strict";var U=function(c,o){C.apply(this,arguments);};U.prototype=q.sap.newObject(C.prototype);U.preprocessClassInfo=function(c){if(c&&typeof c.metadata==="string"){c.metadata={_src:c.metadata};}return c;};U.prototype.applySettings=function(c){C.prototype.applySettings.call(this,c);var u=this._oStaticInfo.manifest["sap.ui5"];if(u&&typeof u.rootView==="string"){u.rootView={viewName:u.rootView,type:sap.ui.core.mvc.ViewType.XML};}};U.prototype.getRootView=function(d){return this._getAndMergeEntry(d,"rootView","getRootView");};U.prototype._getRoutingSection=function(d){return this._getAndMergeEntry(d,"routing","_getRoutingSection");};U.prototype.getRoutingConfig=function(d){var r=this._getRoutingSection(d);return r&&r.config;};U.prototype.getRoutes=function(d){var r=this._getRoutingSection(d);return r&&r.routes;};U.prototype._getAndMergeEntry=function(d,e,f){var p,u=this.getManifestEntry("sap.ui5"),o=q.extend(true,{},u&&u[e]);if(!d&&(p=this.getParent())instanceof U){o=q.extend(true,{},p[f](d),o);}return q.isEmptyObject(o)?null:o;};U.prototype._convertLegacyMetadata=function(s,m){C.prototype._convertLegacyMetadata.call(this,s,m);var u=m["sap.ui5"];u["rootView"]=u["rootView"]||s["rootView"];u["routing"]=u["routing"]||s["routing"];};return U;},true);
