Module org.apache.sis.feature
Package org.apache.sis.filter
Class DefaultFilterFactory.Features<G,T>
- Type Parameters:
G
- base class of geometry objects. The implementation-neutral type is GeoAPIGeometry
, but this factory allows the use of other implementations such as JTSGeometry
or ESRIGeometry
.T
- base class of temporal objects.
- All Implemented Interfaces:
Factory
- Enclosing class:
DefaultFilterFactory<R,
G, T>
public static class DefaultFilterFactory.Features<G,T>
extends DefaultFilterFactory<AbstractFeature,G,T>
A filter factory operating on
AbstractFeature
instances.-
Nested Class Summary
Nested classes/interfaces inherited from class DefaultFilterFactory
DefaultFilterFactory.Features<G,
T> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<V> Expression
<AbstractFeature, V> Creates an expression whose value is computed by retrieving the value indicated by a path in a resource.resourceId
(String identifier) Creates a new predicate to identify an identifiable resource within a filter expression.Methods inherited from class DefaultFilterFactory
add, after, and, and, anyInteracts, bbox, before, begins, begunBy, between, beyond, contains, crosses, disjoint, divide, during, endedBy, ends, equal, equals, forFeatures, function, function, function, greater, greaterOrEqual, intersects, isNil, isNull, less, lessOrEqual, like, like, literal, meets, metBy, multiply, not, notEqual, or, or, overlappedBy, overlaps, property, subtract, tcontains, tequals, touches, toverlaps, within, within
Methods inherited from class AbstractFactory
getVendor
-
Constructor Details
-
Features
Creates a new factory operating onAbstractFeature
instances. See the DefaultFilterFactory(Class, Class, WraparoundMethod) super-class constructor} for a list of valid class arguments.- Parameters:
spatial
- type of spatial objects, orObject.class
for default.temporal
- type of temporal objects, orObject.class
for default.wraparound
- the strategy to use for representing a region crossing the anti-meridian.- See Also:
-
-
Method Details
-
resourceId
Creates a new predicate to identify an identifiable resource within a filter expression.- Specified by:
resourceId
in classDefaultFilterFactory<AbstractFeature,
G, T> - Parameters:
identifier
- identifier of the resource that shall be selected by the predicate.- Returns:
- the predicate.
-
property
Creates an expression whose value is computed by retrieving the value indicated by a path in a resource. If all characters in the path are Unicode identifier parts, then the XPath expression is simply a property name.The desired type of property values can be specified. For example if the property values should be numbers, then
type
can beNumber.class
. If property values can be of any type with no conversion desired, thentype
should beObject.class
.- Specified by:
property
in classDefaultFilterFactory<AbstractFeature,
G, T> - Type Parameters:
V
- the type of the values to be fetched (compile-time value oftype
).- Parameters:
xpath
- the path to the property whose value will be returned by theapply(R)
method.type
- the type of the values to be fetched (run-time value of<V>
).- Returns:
- an expression evaluating the referenced property value.
-