edu.udo.cs.wvtool.main
Class WVTFileInputList

java.lang.Object
  extended by edu.udo.cs.wvtool.main.WVTFileInputList
All Implemented Interfaces:
WVTInputList

public class WVTFileInputList
extends java.lang.Object
implements WVTInputList

This class represents a list of information items describing the documents, from which a word list or word vectors should be created.

Version:
$Id$
Author:
Michael Wurst

Field Summary
private  java.util.List inputList
          the list of input files
private  int numClasses
          the number of classes
 
Constructor Summary
WVTFileInputList(int numClasses)
          Creates a new empty instance of WVTInputList
WVTFileInputList(int numClasses, java.io.Reader xmlSource)
          Creates a new instance of WVTInputList by reading a XML file
 
Method Summary
 void addEntry(WVTDocumentInfo d)
          Add an entry to the list.
 java.util.Iterator getEntries()
          Return the list of entries
 java.util.Iterator getEntries(boolean expanded)
          Return the list of entries
 int getNumClasses()
          Returns the numClasses.
 void removeEntry(WVTDocumentInfo d)
          Remove an entry from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

inputList

private java.util.List inputList
the list of input files


numClasses

private int numClasses
the number of classes

Constructor Detail

WVTFileInputList

public WVTFileInputList(int numClasses)
Creates a new empty instance of WVTInputList

Parameters:
numClasses - the number of class values, 0 if no classes are provided


WVTFileInputList

public WVTFileInputList(int numClasses,
                        java.io.Reader xmlSource)
Creates a new instance of WVTInputList by reading a XML file

Parameters:
numClasses - the number of class values
xmlSource - the name

Method Detail

getEntries

public java.util.Iterator getEntries(boolean expanded)
Return the list of entries

Parameters:
expanded - should the list be expanded? (directoriy entries are converted to a list of files)
Returns:
enumeration of the lists entries


addEntry

public void addEntry(WVTDocumentInfo d)
Add an entry to the list.

Parameters:
d - the entry


removeEntry

public void removeEntry(WVTDocumentInfo d)
Remove an entry from the list.

Parameters:
d - the entry


getNumClasses

public int getNumClasses()
Returns the numClasses.

Specified by:
getNumClasses in interface WVTInputList
Returns:
int


getEntries

public java.util.Iterator getEntries()
Description copied from interface: WVTInputList
Return the list of entries

Specified by:
getEntries in interface WVTInputList
Returns:
enumeration of the lists entries