@Test public void testEqualsXpath() { try (TestFeatureSource fsource = new TestFeatureSource( "/test-data/index/", "stationsIndexed.xml", "http: "stationsIndexed")) { AttributeMapping attMap = fsource.getMappedSource() .getMapping() .getAttributeMapping("st:Station/st:name"); assertNotNull(attMap); } }
public static boolean equalsXpath( FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) { StepList simplifiedSteps = XPath.steps(mapping.getTargetFeature(), xpath, mapping.getNamespaces()); return Objects.equals(attMapping.getTargetXPath(), simplifiedSteps); }
IndexQueryUtils { public static boolean equalsXpath( FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) { StepList simplifiedSteps = XPath.steps(mapping.getTargetFeature(), xpath, mapping.getNamespaces()); return Objects.equals(attMapping.getTargetXPath(), simplifiedSteps); } }
IndexQueryUtils { public static boolean equalsXpath( FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) { StepList simplifiedSteps = XPath.steps(mapping.getTargetFeature(), xpath, mapping.getNamespaces()); return Objects.equals(attMapping.getTargetXPath(), simplifiedSteps); } private  IndexQueryUtils(); }
IndexQueryUtils { public static boolean equalsXpath( FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) { StepList simplifiedSteps = XPath.steps(mapping.getTargetFeature(), xpath, mapping.getNamespaces()); return Objects.equals(attMapping.getTargetXPath(), simplifiedSteps); } private  IndexQueryUtils(); static List<String> getAttributesOnSort(Query query); static List<String> getAttributesOnFilter(Filter filter); static boolean isExpressionEmpty(Expression expression); static boolean equalsProperty(AttributeMapping mapping, String propertyName); static boolean equalsXpath(
            FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath); static boolean equalsPropertyExpression(Expression expression, String propertyName); static boolean checkAllPropertiesIndexed(
            List<String> properties, FeatureTypeMapping mapping); static Filter buildIdInExpressionOr(List<String> ids, FeatureTypeMapping mapping); static Filter buildIdInExpressionFunction(List<String> ids, FeatureTypeMapping mapping); static Filter buildIdInExpression(List<String> ids, FeatureTypeMapping mapping); static AttributeMapping getIndexedAttribute(FeatureTypeMapping mapping, String xpath); }
IndexQueryUtils { public static boolean equalsXpath( FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath) { StepList simplifiedSteps = XPath.steps(mapping.getTargetFeature(), xpath, mapping.getNamespaces()); return Objects.equals(attMapping.getTargetXPath(), simplifiedSteps); } private  IndexQueryUtils(); static List<String> getAttributesOnSort(Query query); static List<String> getAttributesOnFilter(Filter filter); static boolean isExpressionEmpty(Expression expression); static boolean equalsProperty(AttributeMapping mapping, String propertyName); static boolean equalsXpath(
            FeatureTypeMapping mapping, AttributeMapping attMapping, String xpath); static boolean equalsPropertyExpression(Expression expression, String propertyName); static boolean checkAllPropertiesIndexed(
            List<String> properties, FeatureTypeMapping mapping); static Filter buildIdInExpressionOr(List<String> ids, FeatureTypeMapping mapping); static Filter buildIdInExpressionFunction(List<String> ids, FeatureTypeMapping mapping); static Filter buildIdInExpression(List<String> ids, FeatureTypeMapping mapping); static AttributeMapping getIndexedAttribute(FeatureTypeMapping mapping, String xpath);  }