Package org.geotools.filter.expression
Class SimpleFeaturePropertyAccessorFactory
Object
SimpleFeaturePropertyAccessorFactory
- All Implemented Interfaces:
PropertyAccessorFactory
Creates a property accessor for simple features.
The created accessor handles a small subset of xpath expressions, a non-nested "name" which corresponds to a feature attribute, and "@id", corresponding to the feature id.
THe property accessor may be run against SimpleFeature, or against SimpleFeature. In the former
case the feature property value is returned, in the latter the feature property type is returned.
- Author:
- Justin Deoliveira, The Open Planning Project
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyAccessorSingle instance is fine - we are not statefulstatic final PropertyAccessorstatic final StringConventional property name used to indicate the "efault gedometry" of a feature, that is, the one returned byFeature.getDefaultGeometryProperty()or {@link SimpleFeature.getDefaultGeometry()}.static final PropertyAccessorFields inherited from interface PropertyAccessorFactory
DEFAULT_PRIORITY, HIGHEST_PRIORITY, LOWEST_PRIORITY, NAMESPACE_CONTEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreatePropertyAccessor(Class type, String xpath, Class target, Hints hints) Creates a property accessor for a particular class.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface PropertyAccessorFactory
getPriority
-
Field Details
-
ATTRIBUTE_ACCESS
Single instance is fine - we are not stateful -
DEFAULT_GEOMETRY_ACCESS
-
FID_ACCESS
-
DEFAULT_GEOMETRY_NAME
Conventional property name used to indicate the "efault gedometry" of a feature, that is, the one returned byFeature.getDefaultGeometryProperty()or {@link SimpleFeature.getDefaultGeometry()}.- See Also:
-
-
Constructor Details
-
SimpleFeaturePropertyAccessorFactory
public SimpleFeaturePropertyAccessorFactory()
-
-
Method Details
-
createPropertyAccessor
Description copied from interface:PropertyAccessorFactoryCreates a property accessor for a particular class.- Specified by:
createPropertyAccessorin interfacePropertyAccessorFactory- 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
nullif this factory cannot create an accessor for the specified type.
-