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 JTSGeometryor 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
Constructors -
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, withinMethods inherited from class AbstractFactory
getVendor
-
Constructor Details
-
Features
Creates a new factory operating onAbstractFeatureinstances. See the DefaultFilterFactory(Class, Class, WraparoundMethod) super-class constructor} for a list of valid class arguments.- Parameters:
spatial- type of spatial objects, orObject.classfor default.temporal- type of temporal objects, orObject.classfor 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:
resourceIdin 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
typecan beNumber.class. If property values can be of any type with no conversion desired, thentypeshould beObject.class.- Specified by:
propertyin 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.
-