public class SimpleFeaturePropertyAccessorFactory extends Object implements PropertyAccessorFactory
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.
NAMESPACE_CONTEXT
Constructor and Description |
---|
SimpleFeaturePropertyAccessorFactory() |
Modifier and Type | Method and Description |
---|---|
PropertyAccessor |
createPropertyAccessor(Class type,
String xpath,
Class target,
Hints hints)
Creates a property accessor for a particular class.
|
public SimpleFeaturePropertyAccessorFactory()
public PropertyAccessor createPropertyAccessor(Class type, String xpath, Class target, Hints hints)
PropertyAccessorFactory
createPropertyAccessor
in interface PropertyAccessorFactory
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.null
if this factory cannot create an accessor
for the specified type.Copyright © 1996–2019 Geotools. All rights reserved.