01: /*
02: * $Revision: 1.1 $
03: * $Date: 2006/06/10 13:32:32 $
04: * $Author: fdietz $
05: *
06: * Copyright (C) 2001 C. Scott Willy
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License
10: * as published by the Free Software Foundation; either version 2
11: * of the License, or any later version.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
21: */
22: package org.columba.mail.spellcheck.cswilly;
23:
24: import java.util.List;
25:
26: /**
27: * Models a spelling checking engine
28: *<p>
29: *
30: */
31: public interface Engine {
32: /**
33: * Spell check a list of words
34: *<p>
35: * Spell checks the list of works in <code>words</code> and returns a list of
36: * {@link Result}s. There is one {@link Result} for each word in
37: * <code>words</code>.
38: *<p>
39: * @param words {@link String} with list of works to be spell checked.
40: * @return List of {@link Result}
41: */
42: public List checkLine(String line) throws SpellException;
43:
44: // to be defined
45: //public void addWord( String word );
46: }
|