// Copyright (c) 2008 Health Market Science, Inc.

package com.healthmarketscience.sqlbuilder;

/**
 * Interface for SqlObjects wishing to provide verifiablity.  In general, all
 * checking in SqlObject implementations is deferred until an object is fully
 * constructed.  As a post process, a user may choose to validate the sql
 * construct after it is fully constructed by calling the validate method.
 *
 * @author James Ahlborn
 */
public interface Verifiable<ThisType extends Verifiable> {

  /**
   * Runs validation on this verifiable object.
   * 
   * @return a handle to this instance
   */
  public ThisType validate() throws ValidationException;
  
  /**
   * Runs validation on this verifiable object using a previously collected
   * ValidationContext.
   * <p>
   * In general, this method will only be called internally, not by users.
   *
   * @param vContext handle to the current, filled-in validation context
   */
  public void validate(ValidationContext vContext)
    throws ValidationException;
  
}

@@ -1,7 +1,7 @@
 /
-/ 
+*%0A
 Copy
@@ -44,16 +44,857 @@
 , Inc.%0A%0A
+This library is free software; you can redistribute it and/or%0Amodify it under the terms of the GNU Lesser General Public%0ALicense as published by the Free Software Foundation; either%0Aversion 2.1 of the License.%0A%0AThis library is distributed in the hope that it will be useful,%0Abut WITHOUT ANY WARRANTY; without even the implied warranty of%0AMERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU%0ALesser General Public License for more details.%0A%0AYou should have received a copy of the GNU Lesser General Public%0ALicense along with this library; if not, write to the Free Software%0AFoundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307%0AUSA%0A%0AYou can contact Health Market Science at info@healthmarketscience.com%0Aor at the following address:%0A%0AHealth Market Science%0A2700 Horizon Drive%0ASuite 200%0AKing of Prussia, PA 19406%0A*/%0A%0A
 package 

fix copyright notice