Packages:
default
System
System.Caching
System.Collections
System.Data
System.Data.ActiveRecord
System.Data.ActiveRecord.Relations
System.Data.ActiveRecord.Scaffold
System.Data.ActiveReecord.Scaffold.InputBuilder
System.Data.Commom.Sqlite
System.Data.Common
System.Data.Common.Mssql
System.Data.Common.Mysql
System.Data.Common.Oracle
System.Data.Common.Pgsql
System.Data.Common.Sqlite
System.Data.DataGateway
System.Data.SqlMap
System.Data.SqlMap.Configuration
System.Data.SqlMap.Statements
System.Exceptions
System.I18N
System.IO
System.Security
System.Util
System.Web
System.Web.Services
System.Web.UI
System.Web.UI.ActiveControls
System.Web.UI.WebControls
System.Web.UI.WebControls.assets
System.Xml


Classes:
Keyword

Interface IValidator


IValidator interface

If a control wants to validate user input, it must implement this interface.

Since: 3.0
Author: Qiang Xue <qiang.xue@gmail.com>

Method Summary
string
boolean
void
setErrorMessage ( string $value)
void
setIsValid ( boolean $value)
boolean
Validates certain data.

Method Details

getErrorMessage

public string getErrorMessage ()

Output
string error message during last validate
Exception

getIsValid

public boolean getIsValid ()

Output
boolean whether the previous validate() is successful.
Exception

setErrorMessage

public void setErrorMessage (string $value )

Input
string$valueerror message for the validation
Output
Exception

setIsValid

public void setIsValid (boolean $value )

Input
boolean$valuewhether the validator validates successfully
Output
Exception

validate

public boolean validate ()

Validates certain data.

The implementation of this function should validate certain data (e.g. data entered into TTextBox control).

Output
boolean whether the data passes the validation
Exception