public class PropertyAccessors extends Object
Modifier and Type | Method and Description |
---|---|
static PropertyAccessor |
findPropertyAccessor(Object object,
String xpath,
Class target,
Hints hints)
Deprecated.
Use findPropertyAccessors, returned property accessor might not work
|
static List<PropertyAccessor> |
findPropertyAccessors(Object object,
String xpath,
Class target,
Hints hints)
Looks up a list of
PropertyAccessor for a particular object. |
public static PropertyAccessor findPropertyAccessor(Object object, String xpath, Class target, Hints hints)
PropertyAccessor
for a particular object.
This method will return the first accessor that is capabile of handling the object and xpath expression provided, no order is guaranteed.
object
- The target object.xpath
- An xpath expression denoting a property of the target object.hints
- Hints to pass on to factories.null
if one could not be found.findPropertyAccessors
public static List<PropertyAccessor> findPropertyAccessors(Object object, String xpath, Class target, Hints hints)
PropertyAccessor
for a particular object.
This method will return all accessors that is capable of handling the object and xpath expression provided, no order is guaranteed.
object
- The target object.xpath
- An xpath expression denoting a property of the target object.hints
- Hints to pass on to factories.null
if object is nullCopyright © 1996–2019 Geotools. All rights reserved.