Source: controls/Validator/StringValidator.js

/**
 * @requirefiles {controls/Validator/Validator.js}
 */

/**
 * The StringValidator class provides for validation of string values.
 * @class StringValidator
 * @extends Validator
 */
function StringValidator() { }

/**
 * Forces validation of value and returns valid value.
 * @function
 * @name StringValidator#Force
 * @param {string} value The value to force validation from.
 * @return {string}
 */
function StringValidator_Force(value) {
    return (value);
}

/**
 * Determines whether or not a value is valid.
 * @function
 * @name StringValidator#Validate
 * @param {string} value The value to determine the validation state of.
 * @return {boolean}
 */
function StringValidator_Validate(value) {
    return (true);
}
/**
 * Determines whether or not the formatting of the source should be utilized.
 * @name StringValidator#AllowFormatting
 * @type {boolean}
 * @default {false}
 */
/**
 * Determines whether or not the validator works on multiple lines.
 * @name StringValidator#Multiline
 * @type {boolean}
 * @default {false}
 */
// noinspection JSClosureCompilerSyntax,JSValidateTypes
StringValidator.prototype = new Validator(false, false);
StringValidator.prototype.constructor = StringValidator;
StringValidator.prototype.Force = StringValidator_Force;
StringValidator.prototype.Validate = StringValidator_Validate;

/**
 * The global StringValidator instance.
 * @name Validator.String
 * @type {StringValidator}
 * @static
 */
Validator.String = new StringValidator();