de.fh_mannheim.mm.dms.framework
Class StopwordList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byde.fh_mannheim.mm.dms.framework.StopwordList
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, IElement, java.util.List, java.util.RandomAccess, java.io.Serializable

public class StopwordList
extends java.util.ArrayList
implements IElement

This class gives a representation of the stopwords of a specific user.

Version:
$Revision: 1.2 $
Author:
Jan Löffler, mail@jlsoft.de
See Also:
Serialized Form

Constructor Summary
StopwordList()
          Constructor.
StopwordList(java.util.ArrayList aList)
          Constructor.
StopwordList(int nSize)
          Constructor.
 
Method Summary
 void addStopword(Stopword stopword)
          Add a stopword to list.
 void addStopwordList(java.util.ArrayList aList)
          Add a stopword to list.
 boolean containsStopword(java.lang.String strStopword)
          Searches a given stopword in list.
 void deleteStopword(java.lang.String strStopword)
          Delete a stopword from list.
 Stopword getStopword(int nIndex)
          Get stopword from list.
 Stopword getStopword(java.lang.String strStopword)
          Searches a given stopword in list and returns it.
 org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
          Write information of category in a xml element.
 org.w3c.dom.Element toElement(org.w3c.dom.Element element, org.w3c.dom.Document doc)
          Write information of category in a xml element.
 java.lang.String toString()
          Write information of category in a string.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

StopwordList

public StopwordList()
Constructor.


StopwordList

public StopwordList(int nSize)
Constructor.

Parameters:
nSize - Size of array

StopwordList

public StopwordList(java.util.ArrayList aList)
Constructor.

Parameters:
aList - Pre-selected list
Method Detail

addStopword

public void addStopword(Stopword stopword)
Add a stopword to list.

Parameters:
stopword - Stopword

addStopwordList

public void addStopwordList(java.util.ArrayList aList)
Add a stopword to list.

Parameters:
aList - List with stopwords

containsStopword

public boolean containsStopword(java.lang.String strStopword)
Searches a given stopword in list.

Parameters:
strStopword - Stopword
Returns:
true, if existent

getStopword

public Stopword getStopword(java.lang.String strStopword)
Searches a given stopword in list and returns it.

Parameters:
strStopword - Stopword
Returns:
Stopword

getStopword

public Stopword getStopword(int nIndex)
Get stopword from list.

Parameters:
nIndex - Index of list
Returns:
Stopword

deleteStopword

public void deleteStopword(java.lang.String strStopword)
Delete a stopword from list.

Parameters:
strStopword - Stopword

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Document doc)
Write information of category in a xml element.

Specified by:
toElement in interface IElement
Parameters:
doc - XML Document
Returns:
element

toElement

public org.w3c.dom.Element toElement(org.w3c.dom.Element element,
                                     org.w3c.dom.Document doc)
Write information of category in a xml element.

Specified by:
toElement in interface IElement
Parameters:
element - Root element
doc - XML Document
Returns:
element

toString

public java.lang.String toString()
Write information of category in a string.

Specified by:
toString in interface IElement
Returns:
information