Package org.geotools.filter.expression

Examples of org.geotools.filter.expression.PropertyAccessor


    */
    @SuppressWarnings("unchecked")
    public <T> T evaluate(Object obj, Class<T> target) {
        // NC- new method

        PropertyAccessor accessor = getLastPropertyAccessor();
        AtomicReference<Object> value = new AtomicReference<Object>();
        AtomicReference<Exception> e = new AtomicReference<Exception>();

        if (accessor == null || !accessor.canHandle(obj, attPath, target)
                || !tryAccessor(accessor, obj, target, value, e)) {
            boolean success = false;
            if( namespaceSupport != null && hints == null ){
                hints = new Hints(PropertyAccessorFactory.NAMESPACE_CONTEXT, namespaceSupport);
            }
View Full Code Here


    public PropertyAccessor createPropertyAccessor(Class type,
        String xpath, Class target, Hints hints) {
      if (!MockDataObject.class.equals(type)) {
        return null;
      }
      return new PropertyAccessor() {
        public boolean canHandle(Object object, String xpath,
            Class target) {
          return object instanceof MockDataObject;
        }
View Full Code Here

TOP

Related Classes of org.geotools.filter.expression.PropertyAccessor

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.