1 package org.sapia.validator;2 3 4 /**5 * Specifies the behavior of objects that can be "validated".6 *7 * @author Yanick Duchesne8 * <dl>9 * <dt><b>Copyright:</b><dd>Copyright © 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 the11 * <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 getId();21 22 /**23 * Validates this instance.24 *25 * @param a <code>ValidationContext</code>.26 */27 public void validate(ValidationContext ctx);28 }29