text: /*!
   * OpenUI5
   * (c) Copyright 2009-2021 SAP SE or an SAP affiliate company.
   * Licensed under the Apache License, Version 2.0 - see LICENSE.txt.
   */
  sap.ui.define([
  	"sap/ui/integration/designtime/baseEditor/validator/IsValidBinding"
  ], function (
  	IsValidBinding
  ) {
  	"use strict";
  
  	/**
  	 * Validates if the provided value is a number or binding string.
  	 *
  	 * @namespace sap.ui.integration.designtime.baseEditor.validator.IsNumber
  	 * @author SAP SE
  	 * @version 1.96.7
  	 *
  	 * @static
  	 * @since 1.81
  	 * @public
  	 * @experimental 1.81
  	 */
  	return {
  		async: false,
  		errorMessage: "BASE_EDITOR.VALIDATOR.NOT_A_NUMBER",
  		/**
  		 * Validator function
  		 *
  		 * @param {number|string} vValue - Value to validate
  		 * @returns {boolean} Validation result
  		 *
  		 * @public
  		 * @function
  		 * @name sap.ui.integration.designtime.baseEditor.validator.IsNumber.validate
  		 */
  		validate: function (vValue) {
  			return vValue === undefined
  				|| IsValidBinding.validate(vValue, { allowPlainStrings: false })
  				|| !isNaN(vValue);
  		}
  	};
  });
  