Source: controls/Validator/TextValidator.js

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

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

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

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

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