public abstract class AbstractFilter extends Object
Modifier and Type | Field and Description |
---|---|
protected FilterComparator |
comparator |
protected boolean |
negate |
Constructor and Description |
---|
AbstractFilter() |
Modifier and Type | Method and Description |
---|---|
Object |
doFileRefinement(Object o)
performs the file refinement an the given object and returns the
refined object.
|
FilterComparator |
getFilterComparator()
getter for the filter's comparator
|
abstract String |
getFilteringName()
returns the human readable name, which can be used in a drop-down menu (shorter than getName)
|
boolean |
getFilterNegate()
returns, whether this filter is negating or not
|
abstract FilterType |
getFilterType()
returns the type of the filter, i.e.
|
abstract Object |
getFilterValue()
returns the value, against which is filtered
|
abstract String |
getName()
returns the human readable long name of the filter
|
abstract Object |
getObjectsValue(Object o)
returns the value of the Object o, which will be used for filtering.
|
abstract String |
getShortName()
returns the machine readable name of the filter
|
boolean |
newInferenceFor(Class c)
Returns, whether a new inference on the level, where this filter is
applied, is necessary.
|
boolean |
satisfiesFilter(Object o)
compares the given object and the filter value with the filter comparator
and thus returns, whether the object satisfies the filter.
|
abstract boolean |
supportsClass(Object c)
Returns, whether the class of the given object is valid for an instance
of this filter.
|
String |
toString() |
boolean |
valueNeedsFileRefinement()
returns true, if the objects need file refinement (e.g.
|
protected FilterComparator comparator
protected boolean negate
public abstract String getShortName()
public abstract String getName()
public abstract String getFilteringName()
public abstract Object getFilterValue()
public abstract FilterType getFilterType()
public boolean getFilterNegate()
public FilterComparator getFilterComparator()
public abstract Object getObjectsValue(Object o)
o
- public boolean valueNeedsFileRefinement()
public Object doFileRefinement(Object o)
public boolean newInferenceFor(Class c)
c
- one of the objects, the filter is performed onpublic abstract boolean supportsClass(Object c)
c
- public boolean satisfiesFilter(Object o)
o
- Copyright © 2015. All Rights Reserved.