|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectinfomat.vectorspace.Stoplist
public class Stoplist
A stoplist. Consists of an IVector of String:s. To stop (remove) IObject:s these String:s are compared to a IMatrix along a specified dimension (rows or columns).
Field Summary | |
---|---|
(package private) Properties |
properties
|
private IVector<IObject> |
stopIObjects
|
private IVectorStringIO |
stopStringIO
|
private IVector<IVectorString> |
stopStrings
|
Constructor Summary | |
---|---|
Stoplist()
|
|
Stoplist(Properties properties)
|
|
Stoplist(Properties properties,
java.lang.String fileName)
|
|
Stoplist(java.lang.String fileName)
|
Method Summary | |
---|---|
void |
constructStopIObjectsFromStopStrings(IMatrix matrix,
boolean row)
Adapts the stoplist to the specified matrix and dimension. |
void |
constructStopStringsFromStopIObjects()
Constructs a stoplist of String:s from the current set of IObjects. |
Properties |
getDefaultProperties()
|
Properties |
getProperties()
|
java.lang.Object |
getPropertyValue(java.lang.String name)
|
java.util.Vector |
getPropertyVector()
|
IVector<IObject> |
getStopIObjectsVector()
|
IVector<IVectorString> |
getStopStringsVector()
|
void |
readFile(java.io.File file)
|
void |
readFile(java.lang.String fileName)
Reads strings from a text file with one string per row. |
void |
removeIObjectsInStoplist(IMatrix matrix,
boolean row)
Applies #constructStopIObjectsFromStopStrings and #removeStopIObjects(). |
void |
removeStopIObjects(IMatrix matrix,
boolean row)
Removes the IObject:s in the stoplist from the matrix along the specified dimension. |
void |
setProperties(Properties properties)
|
void |
setProperty(java.lang.String name,
java.lang.Object value)
|
void |
setStopIObjectsVector(IVector<IObject> vec)
Very unsafe! |
void |
writeFile(java.io.File file)
|
void |
writeFile(java.lang.String fileName)
Write strings to a text file with one string per row. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Properties properties
private IVectorStringIO stopStringIO
private IVector<IVectorString> stopStrings
private IVector<IObject> stopIObjects
Constructor Detail |
---|
public Stoplist()
public Stoplist(Properties properties)
public Stoplist(java.lang.String fileName)
public Stoplist(Properties properties, java.lang.String fileName)
Method Detail |
---|
public Properties getDefaultProperties()
getDefaultProperties
in interface HasProperties
public IVector<IVectorString> getStopStringsVector()
public IVector<IObject> getStopIObjectsVector()
public void setStopIObjectsVector(IVector<IObject> vec)
public void constructStopIObjectsFromStopStrings(IMatrix matrix, boolean row)
public void constructStopStringsFromStopIObjects()
public void removeStopIObjects(IMatrix matrix, boolean row)
public void removeIObjectsInStoplist(IMatrix matrix, boolean row)
public void readFile(java.lang.String fileName)
public void readFile(java.io.File file)
public void writeFile(java.lang.String fileName)
public void writeFile(java.io.File file)
public java.util.Vector getPropertyVector()
public java.lang.Object getPropertyValue(java.lang.String name)
getPropertyValue
in interface HasProperties
public void setProperty(java.lang.String name, java.lang.Object value) throws PropertyNotFoundException
setProperty
in interface HasProperties
PropertyNotFoundException
public Properties getProperties()
getProperties
in interface HasProperties
public void setProperties(Properties properties)
setProperties
in interface HasProperties
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |