public interface FilterBuilder
Filters 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 Filters be satisfied. |
org.opengis.filter.And |
allOf(List<org.opengis.filter.Filter> filters)
Create a new
Filter that requires that all the provided Filters be satisfied. |
org.opengis.filter.Or |
anyOf(org.opengis.filter.Filter... filters)
Create a new
Filter that requires at least one of the provided Filters 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 Filters 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
Metacards that do not match
the provided Filter |
XPathBuilder |
xpath(String xPathSelector)
Begin creating a
Filter that will match Metacards based on
values selected via an XPath selector. |
AttributeBuilder attribute(String attributeName)
Filter that will match Metacards based on
Attributes 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 Filters will match on all Metacard Attributes that have a format of AttributeType.AttributeFormat.XML and match the XPath selector.
attributeName - must not include "/" or "@"XPathBuilder to continue building an XPath FilterArgumentBuilder 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 FilterXPathBuilder xpath(String xPathSelector)
Filter that will match Metacards 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 Filters will match on all Metacard Attributes that have a format of AttributeType.AttributeFormat.XML and match the XPath selector.
xPathSelector - must include "/" or "@"XPathBuilder to continue building an XPath Filterorg.opengis.filter.And allOf(org.opengis.filter.Filter... filters)
Filter that requires that all the provided Filters be satisfied.filters - one or more FiltersAnd Filterorg.opengis.filter.And allOf(List<org.opengis.filter.Filter> filters)
Filter that requires that all the provided Filters be satisfied.filters - List of FiltersAnd Filterorg.opengis.filter.Or anyOf(org.opengis.filter.Filter... filters)
Filter that requires at least one of the provided Filters be
satisfied.filters - List of FiltersAnd Filterorg.opengis.filter.Or anyOf(List<org.opengis.filter.Filter> filters)
Filter that requires at least one of the provided Filters be
satisfied.filters - one or more FiltersAnd Filterorg.opengis.filter.Not not(org.opengis.filter.Filter filter)
Metacards that do not match
the provided Filterfilter - the filter that should not be matchedNot FilterThis work is licensed under a Creative Commons Attribution 4.0 International License.