View Javadoc

1   package org.wsmo.validator;
2   
3   import org.wsmo.common.Entity;
4   
5   /**
6    * Gives Structure to a validation message.
7    *
8    * <pre>
9    *  Created on January 16, 2006
10   *  Committed by $Author: nathaliest $
11   *  $Source$,
12   * </pre>
13   *
14   * @author nathalie.steinmetz@deri.org
15   * @version $Revision: 1481 $ $Date: 2006-01-16 15:32:46 +0200 (Mon, 16 Jan 2006) $
16   */
17  public interface ValidationMessage {
18  
19      /**
20       * Returns the entity in which the violatin occured
21       * 
22       * @return an entity
23       */
24      public Entity getEntity();
25      
26      
27      /**
28       * Returns the String representation of the error in Entity
29       * 
30       * @return a String
31       */
32      public String getReason();
33  
34      
35      
36      /**
37       * Returns the String representation of the quick Fix possibility.
38       * 
39       * @return a String
40       */
41      public String getQuickFix();
42      
43  }