KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > sapia > validator > Validatable


1 package org.sapia.validator;
2
3
4 /**
5  * Specifies the behavior of objects that can be "validated".
6  *
7  * @author Yanick Duchesne
8  * <dl>
9  * <dt><b>Copyright:</b><dd>Copyright &#169; 2002-2003 <a HREF="http://www.sapia-oss.org">Sapia Open Source Software</a>. All Rights Reserved.</dd></dt>
10  * <dt><b>License:</b><dd>Read the license.txt file of the jar or visit the
11  * <a HREF="http://www.sapia-oss.org/license.html">license page</a> at the Sapia OSS web site</dd></dt>
12  * </dl>
13  */

14 public interface Validatable {
15   /**
16    * Returns this instance's unique identifier.
17    *
18    * @return a unique identifier.
19    */

20   public String JavaDoc getId();
21
22   /**
23    * Validates this instance.
24    *
25    * @param a <code>ValidationContext</code>.
26    */

27   public void validate(ValidationContext ctx);
28 }
29
Popular Tags