The Portrate Interview Engine

StringLengthValidator Methods

The methods of the StringLengthValidator class are listed below. For a complete list of StringLengthValidator class members, see the StringLengthValidator Members topic.

Public Instance Methods

Configure Reads the following attributes from the configuration element:
 minLength: The minimum length of the string maxLength: The maximum length of the string trimmed: True if the string is 'trimmed' prior to validation message: The message returned if validation fails allowNull: True if null strings are allowed 
Dispose (inherited from AbstractValidator)Overloaded.  
Equals (inherited from Object) Determines whether the specified Object is equal to the current Object.
GetHashCode (inherited from Object) Serves as a hash function for a particular type, suitable for use in hashing algorithms and data structures like a hash table.
GetType (inherited from Object) Gets the Type of the current instance.
IsValid Returns TRUE if the given string's length lies within the range defined for this validator.
ToString (inherited from Object) Returns a String that represents the current Object.

Protected Instance Methods

Dispose (inherited from AbstractValidator)Overloaded.  
Finalize 
IsInEffect (inherited from AbstractValidator) Returns TRUE if this rule is in effect, and false if not.
MemberwiseClone (inherited from Object) Creates a shallow copy of the current Object.
RulesSatisfied (inherited from AbstractValidator) Implements a short-circuited rule evaluator that runs each rule in the order in which it was parsed. Returns false when the first rule returns false. Returns true if all rules return true.

See Also

StringLengthValidator Class | Portrate.Interview.Model.Validation Namespace