Package org.geotools.filter.expression
Interface PropertyAccessorFactory
- All Known Implementing Classes:
DirectPropertyAccessorFactory
,FeaturePropertyAccessorFactory
,JSONNodePropertyAccessorFactory
,MapPropertyAccessorFactory
,NullPropertyAccessorFactory
,SimpleFeaturePropertyAccessorFactory
,ThisPropertyAccessorFactory
,XmlXPathPropertyAccessorFactory
public interface PropertyAccessorFactory
Factory used to create instances of
PropertyAccessor
- Author:
- Justin Deoliveira, The Open Planning Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The numeric value for the default priority.static final int
The numeric value for highest priority.static final int
The numeric value for lowest priority.static final Hints.Key
Hints
key used to pass namespace context tocreatePropertyAccessor(Class, String, Class, Hints)
in the form of aNamespaceSupport
instance with the prefix/namespaceURI mappings -
Method Summary
Modifier and TypeMethodDescriptioncreatePropertyAccessor
(Class<?> type, String xpath, Class<?> target, Hints hints) Creates a property accessor for a particular class.default int
Return the priority associated with this property accessor.
-
Field Details
-
HIGHEST_PRIORITY
static final int HIGHEST_PRIORITYThe numeric value for highest priority.- See Also:
-
LOWEST_PRIORITY
static final int LOWEST_PRIORITYThe numeric value for lowest priority.- See Also:
-
DEFAULT_PRIORITY
static final int DEFAULT_PRIORITYThe numeric value for the default priority.- See Also:
-
NAMESPACE_CONTEXT
Hints
key used to pass namespace context tocreatePropertyAccessor(Class, String, Class, Hints)
in the form of aNamespaceSupport
instance with the prefix/namespaceURI mappings
-
-
Method Details
-
createPropertyAccessor
Creates a property accessor for a particular class.- Parameters:
type
- The type of object to be accessed.xpath
- The xpath expression to evaluate.target
- The kind of result we are expecting (ie Geometry)hints
- Hints to be used when creatign the accessor.- Returns:
- The property accessor, or
null
if this factory cannot create an accessor for the specified type.
-
getPriority
default int getPriority()Return the priority associated with this property accessor. By default, a priority value within the range of the lowest and highest priorities will be returned. The more generic a property accessor is, the lower its priority should be.- Returns:
- the priority of this property accessor
-