uk.ac.shef.dcs.oak.jate.util.control
Class StopList

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractSet<E>
          extended by java.util.HashSet<java.lang.String>
              extended by uk.ac.shef.dcs.oak.jate.util.control.StopList
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable<java.lang.String>, java.util.Collection<java.lang.String>, java.util.Set<java.lang.String>

public class StopList
extends java.util.HashSet<java.lang.String>

Represents a stop word list. These are the words which usually should not occur in a valid term

See Also:
Serialized Form

Constructor Summary
StopList(boolean caseSensitive)
          Creates an instance of stop word list
 
Method Summary
 boolean isStopWord(java.lang.String word)
           
 
Methods inherited from class java.util.HashSet
add, clear, clone, contains, isEmpty, iterator, remove, size
 
Methods inherited from class java.util.AbstractSet
equals, hashCode, removeAll
 
Methods inherited from class java.util.AbstractCollection
addAll, containsAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Set
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
 

Constructor Detail

StopList

public StopList(boolean caseSensitive)
         throws java.io.IOException
Creates an instance of stop word list

Parameters:
caseSensitive - whether the list should ignore cases
Throws:
java.io.IOException
Method Detail

isStopWord

public boolean isStopWord(java.lang.String word)
Parameters:
word -
Returns:
true if the word is a stop word, false if otherwise