|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjecteTextReader.AnnotationListing.FieldFilter
public class FieldFilter
This class is a Filter that evaluates some predicate on the given Notation field. Notations that satisfy the predicate condition are included by the filter, while those that do not satisfy the condition are not included.
Field Summary | |
---|---|
private java.lang.String |
field
|
private Predicate |
predicate
|
Constructor Summary | |
---|---|
FieldFilter(java.lang.String field,
Predicate predicate)
|
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. |
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 |
setValue(java.lang.Object newValue)
Changes the value that is tested for equality by this filter |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.lang.String field
private Predicate predicate
Constructor Detail |
---|
public FieldFilter(java.lang.String field, Predicate predicate)
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 void setValue(java.lang.Object newValue)
newValue
- the newValue that notations must match in order
to be included by this filterpublic 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 |