Version: 1.52.51.52.61.52.71.52.81.52.91.52.101.52.111.52.121.52.131.52.141.52.151.52.161.52.171.52.181.52.191.52.201.52.211.52.221.52.231.52.241.52.251.52.261.52.271.52.281.52.291.52.301.52.311.52.321.52.331.52.341.52.351.52.361.52.371.52.381.52.391.52.401.52.411.52.421.52.431.52.441.52.451.52.461.52.471.52.481.54.01.54.11.54.21.54.31.54.41.54.51.54.61.54.71.56.01.56.11.56.21.56.31.56.41.56.51.56.61.56.71.56.81.56.91.56.101.56.111.56.121.56.131.56.141.56.151.56.161.56.171.56.181.58.01.58.11.58.21.58.31.58.41.58.51.58.61.60.01.60.11.60.21.60.31.60.41.60.51.60.61.60.71.60.81.60.91.60.101.60.111.60.121.60.131.60.141.60.171.60.181.60.191.60.201.60.211.60.221.60.231.60.241.60.251.60.261.60.271.60.281.60.291.60.301.60.311.60.321.60.331.60.341.60.351.60.361.60.371.60.381.60.391.60.401.60.411.60.421.61.01.61.11.61.21.62.01.62.11.63.01.63.11.64.01.64.11.64.21.64.31.65.01.65.11.65.21.65.31.65.41.65.51.65.61.65.71.65.81.65.91.65.101.65.111.65.121.65.131.66.01.66.11.67.01.67.11.68.11.69.01.69.11.70.01.71.01.71.11.71.21.71.31.71.41.71.51.71.61.71.71.71.81.71.91.71.101.71.111.71.121.71.131.71.141.71.151.71.161.71.171.71.181.71.191.71.201.71.211.71.221.71.231.71.241.71.251.71.261.71.271.71.281.71.291.71.301.71.311.71.321.71.331.71.341.71.351.71.361.71.371.71.381.71.391.71.401.71.411.71.421.71.431.71.441.71.451.71.461.71.471.71.481.71.511.71.521.71.531.71.541.71.551.71.561.71.571.71.581.71.591.71.601.71.611.71.621.71.631.71.641.71.651.71.661.71.671.72.01.72.11.72.21.72.31.72.41.72.51.72.61.72.71.73.01.73.11.73.21.74.01.75.01.75.11.75.21.75.41.75.51.75.61.75.71.76.01.77.01.77.11.77.21.78.01.78.11.78.21.78.31.78.41.78.51.78.61.78.71.78.81.78.91.78.101.78.111.78.121.78.131.78.141.78.151.78.161.78.171.78.181.79.01.80.01.80.11.81.01.81.11.81.21.81.31.81.41.81.51.81.61.81.71.82.01.82.11.82.21.84.01.84.11.84.21.84.31.84.41.84.51.84.61.84.71.84.81.84.91.84.101.84.111.84.121.84.131.84.141.84.151.84.161.84.171.84.181.84.191.84.201.84.211.84.221.84.231.84.241.84.251.84.261.84.271.84.281.84.291.84.30-SNAPSHOT1.84.311.84.321.84.331.84.341.84.351.84.361.84.371.84.381.84.391.84.401.84.411.84.421.84.431.84.441.84.451.84.461.84.471.85.01.85.11.85.21.85.31.85.41.86.01.86.11.86.21.86.31.87.01.87.11.87.21.87.31.87.41.87.51.87.61.87.71.87.81.87.91.87.101.88.01.89.01.89.11.90.01.90.11.90.21.90.31.90.41.90.51.90.61.90.71.90.81.90.91.90.101.90.111.90.121.90.131.91.01.92.01.93.01.93.11.93.21.93.31.93.41.94.01.95.01.96.01.96.11.96.21.96.31.96.41.96.51.96.61.96.71.96.81.96.91.96.101.96.111.96.121.96.131.96.141.96.151.96.161.96.171.96.181.96.191.96.201.96.211.96.221.96.231.96.241.96.251.96.261.96.271.96.281.96.291.96.301.96.311.96.321.96.331.96.341.97.01.97.11.98.01.99.01.99.11.100.01.100.11.101.01.102.01.102.11.102.21.102.31.102.41.102.51.102.61.102.71.102.81.102.91.102.101.102.111.102.121.102.131.102.141.102.151.102.161.102.171.103.01.103.11.104.01.105.01.105.11.105.21.105.31.106.01.107.01.107.11.108.01.108.11.108.21.108.31.108.41.108.51.108.61.108.71.108.81.108.91.108.101.108.111.108.121.108.131.108.141.108.151.108.161.108.171.108.181.108.191.108.201.108.211.108.221.108.231.108.241.108.251.108.261.108.271.108.281.108.291.108.301.108.331.108.341.108.351.109.01.110.01.111.01.111.11.111.21.111.31.111.41.111.51.111.61.112.01.112.11.112.21.113.01.114.01.114.11.114.21.114.31.114.41.114.51.114.61.114.71.114.81.114.91.114.101.114.111.114.121.114.131.114.141.114.151.114.161.115.01.115.11.116.01.117.01.117.11.117.21.117.31.117.41.117.51.118.01.119.01.119.11.120.01.120.11.120.21.120.31.120.41.120.51.120.61.120.71.120.81.120.91.120.101.120.111.120.121.120.131.120.141.120.151.120.161.120.171.120.181.120.191.120.201.121.01.121.11.121.21.121.31.121.41.121.51.122.01.122.11.123.01.123.11.124.01.124.11.124.21.124.31.124.41.124.51.124.61.125.01.126.01.126.11.127.01.127.11.128.0
/*!
* OpenUI5
* (c) Copyright 2009-2022 SAP SE or an SAP affiliate company.
* Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
*/
// Provides access to Java-like properties files
sap.ui.define(['jquery.sap.global', 'sap/base/util/Properties'],
function(jQuery, Properties) {
"use strict";
/**
* Creates and returns a new instance of {@link jQuery.sap.util.Properties}.
*
* If option 'url' is passed, immediately a load request for the given target is triggered.
* A property file that is loaded can contain comments with a leading ! or #.
* The loaded property list does not contain any comments.
* <b>Example for loading a property file:</b>
* <pre>
* jQuery.sap.properties({url : "../myProperty.properties"});
* </pre>
* <b>Example for creating an empty properties instance:</b>
* jQuery.sap.properties();
* <b>Examples for getting and setting properties:</b>
* var oProperties = jQuery.sap.properties();
* oProperties.setProperty("KEY_1","Test Key");
* var sValue1 = oProperties.getProperty("KEY_1");
* var sValue2 = oProperties.getProperty("KEY_2","Default");
* @name jQuery.sap.properties
* @function
* @param {object} [mParams] Parameters used to initialize the property list
* @param {string} [mParams.url] The URL to the .properties file which should be loaded
* @param {boolean} [mParams.async=false] Whether the .properties file should be loaded asynchronously or not
* @param {object} [mParams.headers] A map of additional header key/value pairs to send along with
* the request (see <code>headers</code> option of <code>jQuery.ajax</code>)
* @param {object} [mParams.returnNullIfMissing=false] Whether <code>null</code> should be returned
* for a missing properties file; by default an empty collection is returned
* @return {jQuery.sap.util.Properties|null|Promise} A new property collection (synchronous case)
* or <code>null</code> if the file could not be loaded and <code>returnNullIfMissing</code>
* was set; in case of asynchronous loading, always a Promise is returned, which resolves with
* the property collection or with <code>null</code> if the file could not be loaded and
* <code>returnNullIfMissing</code> was set to true
* @throws {Error} When the file has syntax issues (e.g. incomplete unicode escapes);
* in async mode, the error is not thrown but the returned Promise will be rejected
* @SecSink {0|PATH} Parameter is used for future HTTP requests
* @deprecated since 1.58 use {@link module:sap/base/util/Properties.create} instead
* @public
jQuery.sap.properties = Properties.create;
* @interface Represents a collection of string properties (key/value pairs).
* Each key and its corresponding value in the collection is a string, keys are case-sensitive.
* Use {@link jQuery.sap.properties} to create an instance of <code>jQuery.sap.util.Properties</code>.
* The {@link #getProperty} method can be used to retrieve a value from the collection,
* {@link #setProperty} to store or change a value for a key and {@link #getKeys}
* can be used to retrieve an array of all keys that are currently stored in the collection.
* @version 1.90.11
* @since 0.9.0
* @name jQuery.sap.util.Properties
* @deprecated since 1.58 use {@link module:sap/base/util/Properties} instead
* Returns the value for the given key or <code>null</code> if the collection has no value for the key.
* Optionally, a default value can be given which will be returned if the collection does not contain
* a value for the key; only non-empty default values are supported.
* @param {string} sKey Key to return the value for
* @param {string} [sDefaultValue=null] Optional, a default value that will be returned
* if the requested key is not in the collection
* @returns {string} Value for the given key or the default value or <code>null</code>
* if no default value or a falsy default value was given
* @name jQuery.sap.util.Properties#getProperty
* Returns an array of all keys in the property collection.
* @returns {string[]} All keys in the property collection
* @name jQuery.sap.util.Properties#getKeys
* Stores or changes the value for the given key in the collection.
* If the given value is not a string, the collection won't be modified.
* The key is always cast to a string.
* @param {string} sKey Key of the property
* @param {string} sValue String value for the key
* @name jQuery.sap.util.Properties#setProperty
* Creates and returns a clone of the property collection.
* @returns {jQuery.sap.util.Properties} A clone of the property collection
* @name jQuery.sap.util.Properties#clone
return jQuery;
});