public class GeotoolsFilterBuilder extends Object implements FilterBuilder
Constructor and Description |
---|
GeotoolsFilterBuilder() |
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 string)
|
ArgumentBuilder |
function(String name)
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. |
public org.opengis.filter.And allOf(org.opengis.filter.Filter... filters)
FilterBuilder
Filter
that requires that all the provided Filter
s be satisfied.allOf
in interface FilterBuilder
filters
- one or more Filter
sAnd
Filter
public org.opengis.filter.Or anyOf(org.opengis.filter.Filter... filters)
FilterBuilder
Filter
that requires at least one of the provided Filter
s be
satisfied.anyOf
in interface FilterBuilder
filters
- List
of Filter
sAnd
Filter
public AttributeBuilder attribute(String string)
FilterBuilder
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 FilterBuilder.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.
attribute
in interface FilterBuilder
string
- must not include "/" or "@"XPathBuilder
to continue building an XPath Filter
public ArgumentBuilder function(String name)
FilterBuilder
Filter
that will call a function with the given name. The function can
require 0..N arguments.function
in interface FilterBuilder
ArgumentBuilder
to continue and add function arguments Filter
public XPathBuilder xpath(String xPathSelector)
FilterBuilder
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.
xpath
in interface FilterBuilder
xPathSelector
- must include "/" or "@"XPathBuilder
to continue building an XPath Filter
public org.opengis.filter.Not not(org.opengis.filter.Filter filter)
FilterBuilder
Metacard
s that do not match
the provided Filter
not
in interface FilterBuilder
filter
- the filter that should not be matchedNot
Filter
public org.opengis.filter.And allOf(List<org.opengis.filter.Filter> filters)
FilterBuilder
Filter
that requires that all the provided Filter
s be satisfied.allOf
in interface FilterBuilder
filters
- List
of Filter
sAnd
Filter
public org.opengis.filter.Or anyOf(List<org.opengis.filter.Filter> filters)
FilterBuilder
Filter
that requires at least one of the provided Filter
s be
satisfied.anyOf
in interface FilterBuilder
filters
- one or more Filter
sAnd
Filter
This work is licensed under a Creative Commons Attribution 4.0 International License.