|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecteTextReader.AnnotationListing.CompoundFilter
public class CompoundFilter
Provides an implementation of the NotationFilter interface that allows joining together of two other NotationFilters. The two filters can be combined using either a union or intersection operation, depending on the CombinationMode specified when the CompoundFilter is constructed
CombinationMode
Field Summary | |
---|---|
private NotationFilter |
filter1
|
private NotationFilter |
filter2
|
private CombinationMode |
mode
|
Constructor Summary | |
---|---|
CompoundFilter()
|
|
CompoundFilter(CombinationMode mode)
|
|
CompoundFilter(NotationFilter filter1,
NotationFilter filter2,
CombinationMode mode)
|
Method Summary | |
---|---|
java.lang.String |
getDescription()
Retrieves a description of this filter, used to display information about this filter in a menu item, button, etc. |
java.lang.String |
getEndDate()
Retrieves the ending date for notations that match this filter. |
NotationFilter |
getFilter1()
|
NotationFilter |
getFilter2()
|
CombinationMode |
getMode()
|
java.lang.String |
getStartDate()
Retrieves the starting date for notations that match this filter. |
boolean |
include(Notation n)
Determines whether the notation n matches the criteria for inclusion provided by this filter |
boolean |
isDateFilter()
Determines whether this filter includes a date component; used to restrict the annotations returned by requestViewableAnnotations |
void |
setFilter1(NotationFilter filter1)
|
void |
setFilter2(NotationFilter filter2)
|
void |
setMode(CombinationMode mode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private CombinationMode mode
private NotationFilter filter1
private NotationFilter filter2
Constructor Detail |
---|
public CompoundFilter()
public CompoundFilter(CombinationMode mode)
public CompoundFilter(NotationFilter filter1, NotationFilter filter2, CombinationMode mode)
Method Detail |
---|
public java.lang.String getEndDate()
NotationFilter
getEndDate
in interface NotationFilter
public java.lang.String getStartDate()
NotationFilter
NotationFilter
public boolean include(Notation n)
NotationFilter
include
in interface NotationFilter
n
- the notation to filter
public boolean isDateFilter()
NotationFilter
isDateFilter
in interface NotationFilter
public NotationFilter getFilter1()
public void setFilter1(NotationFilter filter1)
public NotationFilter getFilter2()
public void setFilter2(NotationFilter filter2)
public CombinationMode getMode()
public void setMode(CombinationMode mode)
public java.lang.String getDescription()
NotationFilter
getDescription
in interface NotationFilter
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |