public interface FilterBuilder
Filter
s in an easy way without a dependence on a particular
Filter
implementation.
This method of creating Filter
instances is strongly recommended.
Modifier and Type | Method and Description |
---|---|
org.opengis.filter.And |
allOf(org.opengis.filter.Filter... filters)
Create a new
Filter that requires that all the provided Filter s be satisfied. |
org.opengis.filter.And |
allOf(List<org.opengis.filter.Filter> filters)
Create a new
Filter that requires that all the provided Filter s be satisfied. |
org.opengis.filter.Or |
anyOf(org.opengis.filter.Filter... filters)
Create a new
Filter that requires at least one of the provided Filter s be
satisfied. |
org.opengis.filter.Or |
anyOf(List<org.opengis.filter.Filter> filters)
Create a new
Filter that requires at least one of the provided Filter s be
satisfied. |
AttributeBuilder |
attribute(String attributeName)
|
ArgumentBuilder |
function(String functionName)
Begin creating a
Filter that will call a function with the given name. |
org.opengis.filter.Not |
not(org.opengis.filter.Filter filter)
Create a Filter that matches on
Metacard s that do not match
the provided Filter |
XPathBuilder |
xpath(String xPathSelector)
Begin creating a
Filter that will match Metacard s based on
values selected via an XPath selector. |
AttributeBuilder attribute(String attributeName)
Filter
that will match Metacard
s based on
Attribute
s with the given name.
Note Because the Catalog's Filter
profile uses attribute names and XPath
selectors interchangeable, the provided Attribute
name must not
include the forward slash (/) or ampersand (@) characters, which are reserved for XPath
selectors (see xpath(String)
.
XPath Filter
s will match on all Metacard
Attribute
s that have a format of AttributeType.AttributeFormat.XML
and match the XPath selector.
attributeName
- must not include "/" or "@"XPathBuilder
to continue building an XPath Filter
ArgumentBuilder function(String functionName)
Filter
that will call a function with the given name. The function can
require 0..N arguments.functionName
- ArgumentBuilder
to continue and add function arguments Filter
XPathBuilder xpath(String xPathSelector)
Filter
that will match Metacard
s based on
values selected via an XPath selector.
Note Because the Catalog's Filter
profile uses attribute names and XPath
selectors interchangeable, XPath must include either the forward slash (/) or ampersand (@)
character to indicate use of XPath.
XPath Filter
s will match on all Metacard
Attribute
s that have a format of AttributeType.AttributeFormat.XML
and match the XPath selector.
xPathSelector
- must include "/" or "@"XPathBuilder
to continue building an XPath Filter
org.opengis.filter.And allOf(org.opengis.filter.Filter... filters)
Filter
that requires that all the provided Filter
s be satisfied.filters
- one or more Filter
sAnd
Filter
org.opengis.filter.And allOf(List<org.opengis.filter.Filter> filters)
Filter
that requires that all the provided Filter
s be satisfied.filters
- List
of Filter
sAnd
Filter
org.opengis.filter.Or anyOf(org.opengis.filter.Filter... filters)
Filter
that requires at least one of the provided Filter
s be
satisfied.filters
- List
of Filter
sAnd
Filter
org.opengis.filter.Or anyOf(List<org.opengis.filter.Filter> filters)
Filter
that requires at least one of the provided Filter
s be
satisfied.filters
- one or more Filter
sAnd
Filter
org.opengis.filter.Not not(org.opengis.filter.Filter filter)
Metacard
s that do not match
the provided Filter
filter
- the filter that should not be matchedNot
Filter
This work is licensed under a Creative Commons Attribution 4.0 International License.