Package org.geotools.vectortiles.store
Class RelaxedSimpleFeaturePropertyAccessorFactory
Object
RelaxedSimpleFeaturePropertyAccessorFactory
- All Implemented Interfaces:
PropertyAccessorFactory
public class RelaxedSimpleFeaturePropertyAccessorFactory
extends Object
implements PropertyAccessorFactory
Like
DirectPropertyAccessorFactory
but works on SimpleFeature
attribtues, not Property
, so we
can handle attribute names like @name from vector tiles-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyAccessor
Single instance is fine - we are not statefulFields 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, wait
Methods inherited from interface PropertyAccessorFactory
getPriority
-
Field Details
-
ATTRIBUTE_ACCESS
Single instance is fine - we are not stateful
-
-
Constructor Details
-
RelaxedSimpleFeaturePropertyAccessorFactory
public RelaxedSimpleFeaturePropertyAccessorFactory()
-
-
Method Details
-
createPropertyAccessor
Description copied from interface:PropertyAccessorFactory
Creates a property accessor for a particular class.- Specified by:
createPropertyAccessor
in 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
null
if this factory cannot create an accessor for the specified type.
-