Class UnmappingFilterVisitor

  • All Implemented Interfaces:
    ExpressionVisitor, FilterVisitor

    public class UnmappingFilterVisitor
    extends Object
    implements FilterVisitor, ExpressionVisitor
    A Filter visitor that traverse a Filter or Expression made against a complex FeatureType, and that uses the attribute and type mapping information given by a FeatureTypeMapping object to produce an equivalent Filter that operates against the original FeatureType.

    Usage:

     <code>
        Filter filterOnTargetType = ...
        FeatureTypeMappings schemaMapping = ....
    
        UnMappingFilterVisitor visitor = new UnmappingFilterVisitor(schemaMapping);
        Filter filterOnSourceType = (Filter)filterOnTargetType.accept(visitor, null);
    
     </code>
     
    Since:
    2.4
    Author:
    Gabriel Roldan (Axios Engineering), Rini Angreani (CSIRO Earth Science and Resource Engineering)