org.geotools.data.complex.filter
Class XmlUnmappingFilterVisitor

java.lang.Object
  extended by org.geotools.data.complex.filter.UnmappingFilterVisitor
      extended by org.geotools.data.complex.filter.XmlUnmappingFilterVisitor
All Implemented Interfaces:
org.opengis.filter.expression.ExpressionVisitor, org.opengis.filter.FilterVisitor

public class XmlUnmappingFilterVisitor
extends UnmappingFilterVisitor

A Filter visitor that customises UnMappingFilterVisitor to map to xpath expressions.

Since:
2.4
Version:
$Id: XmlUnmappingFilterVisitor.java 34061 2009-10-05 06:31:55Z bencaradocdavies $
Author:
Russell Petty, GSV

Constructor Summary
XmlUnmappingFilterVisitor(FeatureTypeMapping mappings)
          visit(*Expression) holds the unmapped expression here.
 
Method Summary
protected  java.util.List<org.opengis.filter.expression.Expression> findMappingsFor(FeatureTypeMapping mappings, XPath.StepList propertyName)
          Looks up for attribute mappings matching the xpath expression propertyName.
 
Methods inherited from class org.geotools.data.complex.filter.UnmappingFilterVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visitBinaryComparisonOperator, visitBinaryExpression, visitBinaryLogicOp, visitBinarySpatialOp, visitNullFilter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlUnmappingFilterVisitor

public XmlUnmappingFilterVisitor(FeatureTypeMapping mappings)
visit(*Expression) holds the unmapped expression here. Package visible just for unit tests

Method Detail

findMappingsFor

protected java.util.List<org.opengis.filter.expression.Expression> findMappingsFor(FeatureTypeMapping mappings,
                                                                                   XPath.StepList propertyName)
Looks up for attribute mappings matching the xpath expression propertyName.

If any step in propertyName has index greater than 1, any mapping for the same property applies, regardless of the mapping. For example, if there are mappings for gml:name[1], gml:name[2] and gml:name[3], but propertyName is just gml:name, all three mappings apply.

Overrides:
findMappingsFor in class UnmappingFilterVisitor
Parameters:
mappings - Feature type mapping to search for
simplifiedSteps -
Returns:


Copyright © 1996-2010 Geotools. All Rights Reserved.