|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.deegree.filter.IdFilter
public class IdFilter
Filter
that matches resources by ResourceId
s.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.deegree.filter.Filter |
---|
Filter.Type |
Constructor Summary | |
---|---|
IdFilter(List<ResourceId> selectedIds)
Creates a new IdFilter that selects the resources with the given ids. |
|
IdFilter(Set<String> selectedIds)
Creates a new IdFilter that selects the resources with the given ids. |
|
IdFilter(String... selectedIds)
Creates a new IdFilter that selects the resources with the given ids. |
Method Summary | ||
---|---|---|
|
evaluate(T obj,
XPathEvaluator<T> xpathEvaluator)
Determines if the given object matches this Filter . |
|
Set<String> |
getMatchingIds()
Deprecated. use getSelectedIds() instead |
|
List<ResourceId> |
getSelectedIds()
Returns the ids of the resources that this filter selects. |
|
Filter.Type |
getType()
Always returns Filter.Type.ID_FILTER (for IdFilter instances). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IdFilter(String... selectedIds)
IdFilter
that selects the resources with the given ids.
ids
- ids of the resources that the filter will selects, must not be null
public IdFilter(Set<String> selectedIds)
IdFilter
that selects the resources with the given ids.
ids
- ids of the resources that the filter will selects, must not be null
public IdFilter(List<ResourceId> selectedIds)
IdFilter
that selects the resources with the given ids.
selectedIds
- ids of the resources that the filter will selects, must not be null
Method Detail |
---|
public Filter.Type getType()
Filter.Type.ID_FILTER
(for IdFilter
instances).
getType
in interface Filter
Filter.Type.ID_FILTER
public List<ResourceId> getSelectedIds()
public Set<String> getMatchingIds()
getSelectedIds()
instead
public <T> boolean evaluate(T obj, XPathEvaluator<T> xpathEvaluator) throws FilterEvaluationException
Filter
Filter
.
evaluate
in interface Filter
T
- type of the context objectobj
- object that the operator is evaluated upon, must not be null
xpathEvaluator
- used for evaluation of XPath expressions, must not be null
FilterEvaluationException
- if the evaluation fails
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |