org.geotools.filter.expression
Class PropertyAccessors

java.lang.Object
  extended by org.geotools.filter.expression.PropertyAccessors

public class PropertyAccessors
extends java.lang.Object

Convenience class for looking up a property accessor for a particular object type.

Author:
Justin Deoliveira, The Open Planning Project

Method Summary
static PropertyAccessor findPropertyAccessor(java.lang.Object object, java.lang.String xpath, java.lang.Class target, Hints hints)
          Looks up a PropertyAccessor for a particular object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findPropertyAccessor

public static PropertyAccessor findPropertyAccessor(java.lang.Object object,
                                                    java.lang.String xpath,
                                                    java.lang.Class target,
                                                    Hints hints)
Looks up a 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.

Parameters:
object - The target object.
xpath - An xpath expression denoting a property of the target object.
hints - Hints to pass on to factories.
Returns:
A property accessor, or null if one could not be found.


Copyright © 1996-2010 Geotools. All Rights Reserved.