svn-gvsig-desktop / branches / F2 / extensions / extJCRS / install / IzPack / src / lib / com / izforge / izpack / panels / Validator.java @ 20036
History | View | Annotate | Download (1.95 KB)
1 |
/*
|
---|---|
2 |
* $Id: Validator.java 5819 2006-06-14 07:29:09Z cesar $
|
3 |
* Copyright (C) 2002 Elmar Grom
|
4 |
*
|
5 |
* File : Validator.java
|
6 |
* Description : This interface defines the public interface for
|
7 |
* classes that perform validation services for
|
8 |
* the UsserInputPanel.
|
9 |
* Author's email : elmar@grom.net
|
10 |
* Author's Website : http://www.izforge.com
|
11 |
*
|
12 |
* This program is free software; you can redistribute it and/or
|
13 |
* modify it under the terms of the GNU General Public License
|
14 |
* as published by the Free Software Foundation; either version 2
|
15 |
* of the License, or any later version.
|
16 |
*
|
17 |
* This program is distributed in the hope that it will be useful,
|
18 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
* GNU General Public License for more details.
|
21 |
*
|
22 |
* You should have received a copy of the GNU General Public License
|
23 |
* along with this program; if not, write to the Free Software
|
24 |
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
|
25 |
*/
|
26 |
|
27 |
package com.izforge.izpack.panels; |
28 |
|
29 |
/*---------------------------------------------------------------------------*/
|
30 |
/**
|
31 |
* Interface for classes that provide rule validation services.
|
32 |
*
|
33 |
* @version 0.0.1 / 10/26/02
|
34 |
* @author Elmar Grom
|
35 |
*/
|
36 |
/*---------------------------------------------------------------------------*/
|
37 |
public interface Validator |
38 |
{ |
39 |
/*--------------------------------------------------------------------------*/
|
40 |
/**
|
41 |
* Validates the contend of an input field.
|
42 |
*
|
43 |
* @param client the client object using the services of this validator.
|
44 |
*
|
45 |
* @return <code>true</code> if the validation passes, otherwise <code>false</code>.
|
46 |
*/
|
47 |
/*--------------------------------------------------------------------------*/
|
48 |
public boolean validate (ProcessingClient client); |
49 |
} |
50 |
/*---------------------------------------------------------------------------*/
|