Added implementation of taxonomy set operations (intersection and union)
This commit is contained in:
@@ -29,6 +29,7 @@ public class Filter implements Cloneable {
|
||||
NOTE_PUNCTUATIONS,
|
||||
MINIMAL_OCCURRENCES,
|
||||
MINIMAL_TAXONOMY,
|
||||
TAXONOMY_SET_OPERATION,
|
||||
COLLOCABILITY,
|
||||
PREFIX_LENGTH,
|
||||
SUFFIX_LENGTH,
|
||||
@@ -104,6 +105,14 @@ public class Filter implements Cloneable {
|
||||
return (Integer) filter.get(STRING_LENGTH);
|
||||
}
|
||||
|
||||
public void setTaxonomySetOperation(String taxonomySetOperation) {
|
||||
filter.put(TAXONOMY_SET_OPERATION, taxonomySetOperation);
|
||||
}
|
||||
|
||||
public String getTaxonomySetOperation() {
|
||||
return (String) filter.get(TAXONOMY_SET_OPERATION);
|
||||
}
|
||||
|
||||
public void setTaxonomy(ArrayList<Taxonomy> taxonomy) {
|
||||
filter.put(TAXONOMY, taxonomy);
|
||||
}
|
||||
|
||||
@@ -593,6 +593,12 @@ public class StatisticsNew {
|
||||
info.put(I18N.get("exportHeader.msd"), "");
|
||||
}
|
||||
|
||||
if (!isEmpty(filter.getTaxonomySetOperation())) {
|
||||
info.put(I18N.get("exportHeader.taxonomySetOperation"), filter.getTaxonomySetOperation());
|
||||
} else {
|
||||
info.put(I18N.get("exportHeader.taxonomySetOperation"), "");
|
||||
}
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user