View Javadoc

1   /*
2    * $Id: ResultModel.java,v 1.6 2006/06/04 20:41:52 edankert Exp $
3    *
4    * The contents of this file are subject to the Mozilla Public License 
5    * Version 1.1 (the "License"); you may not use this file except in 
6    * compliance with the License. You may obtain a copy of the License at 
7    * http://www.mozilla.org/MPL/ 
8    *
9    * Software distributed under the License is distributed on an "AS IS" basis, 
10   * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License 
11   * for the specific language governing rights and limitations under the License.
12   *
13   * The Original Code is XML Hammer code. (org.xmlhammer.*)
14   *
15   * The Initial Developer of the Original Code is Edwin Dankert. Portions created 
16   * by the Initial Developer are Copyright (C) 2005 - 2006 the Initial Developer. 
17   * All Rights Reserved.
18   *
19   * Contributor(s): Edwin Dankert <edankert@gmail.com>
20   */
21  
22  
23  package org.xmlhammer;
24  
25  import java.io.IOException;
26  import java.net.URI;
27  
28  import javax.xml.transform.TransformerException;
29  
30  import org.xml.sax.SAXParseException;
31  import org.xmlhammer.model.project.Output;
32  
33  /***
34   * Wrapper around the Result object ...
35   * 
36   * @version $Revision: 1.6 $, $Date: 2006/06/04 20:41:52 $
37   * @author Edwin Dankert <edankert@gmail.com>
38   */
39  
40  public interface ResultModel {
41      public static final String MESSAGE_TYPE_OUT = "out";
42      public static final String MESSAGE_TYPE_ERR = "err";
43      
44  	public void addWarning(URI src, SAXParseException exception);
45      public void addWarning(URI src, TransformerException exception);
46  	public void addError(URI src, SAXParseException exception);
47      public void addError(URI src, TransformerException exception);
48  	public void addFatal(URI src, SAXParseException exception);
49      public void addFatal(URI src, TransformerException exception);
50  	public void addFatal(URI src, IOException exception);
51  	public void addValue(URI src, Object object);
52      public void addValid(URI src);
53  	public void addMessage(URI src, String type, String message);
54  	public Output getOutput();
55  }