com.jalios.jcms.search.spell
Class CollectionDictionary

java.lang.Object
  extended by com.jalios.jcms.search.spell.CollectionDictionary
All Implemented Interfaces:
Dictionary

public class CollectionDictionary
extends Object
implements Dictionary

A simple SpellChecker Dictionary to allow indexing of Collection of words.

Version:
$Revision: 14756 $
Author:
Olivier Jaquemet

Field Summary
static String REVISION
           
 
Constructor Summary
CollectionDictionary(Collection coll)
          Create a new CollectionDictionnary using the given String collection
 
Method Summary
 Iterator getWordsIterator()
          return all the words present in the dictionnary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REVISION

public static final String REVISION
See Also:
Constant Field Values
Constructor Detail

CollectionDictionary

public CollectionDictionary(Collection coll)
Create a new CollectionDictionnary using the given String collection

Parameters:
coll -
Method Detail

getWordsIterator

public Iterator getWordsIterator()
Description copied from interface: Dictionary
return all the words present in the dictionnary

Specified by:
getWordsIterator in interface Dictionary
Returns:
Iterator


Copyright © 2001-2010 Jalios SA. All Rights Reserved.