/** * */ /** * The Validator class provides for validation of alphanumeric characters. * @class * @abstract * @param {boolean} allowFormatting Determines whether or not the formatting of the source should be utilized. * @param {boolean} multiline Determines whether or not the validator works on multiple lines. */ function Validator(allowFormatting, multiline) { /** * Determines whether or not the formatting of the source should be utilized. * @name Validator#AllowFormatting * @type {boolean} * @default {true} */ Validator.AllowFormatting = true; /** * Determines whether or not the validator works on multiple lines. * @name Validator#Multiline * @type {boolean} * @default {true} */ Validator.Multiline = true; } /** * Forces validation of value and returns valid value. * @function * @name Validator#Force * @param {string} value The value to force validation from. * @return {string} */ function Validator_Force(value) { return (value); } /** * Determines whether or not a value is valid. * @function * @name Validator#Validate * @param {string} value The value to determine the validation state of. * @return {boolean} */ function Validator_Validate(value) { return (true); } Validator.prototype.constructor = Validator; Validator.Force = Validator_Force; Validator.Validate = Validator_Validate;