public void setValue(Object newSum) { strategy = createStrategy(newSum.getClass()); strategy.add(newSum); }
public void visit(Feature feature) { Object value = expr.evaluate(feature); if (value != null) { if (strategy == null) { strategy = createStrategy(value.getClass()); } strategy.add(value); } }
public SumVisitor(int attributeTypeIndex, SimpleFeatureType type) throws IllegalFilterException { FilterFactory factory = CommonFactoryFinder.getFilterFactory(null); AttributeDescriptor attributeType = type.getDescriptor(attributeTypeIndex); expr = factory.property(attributeType.getLocalName()); createStrategy(attributeType.getType().getBinding()); }
public SumVisitor(String attrName, SimpleFeatureType type) throws IllegalFilterException { FilterFactory factory = CommonFactoryFinder.getFilterFactory(null); AttributeDescriptor attributeType = type.getDescriptor(attrName); expr = factory.property(attributeType.getLocalName()); createStrategy(attributeType.getType().getBinding()); }
public void setValue(Object newSum) { strategy = createStrategy(newSum.getClass()); strategy.add(newSum); }
public void setValue(Object newSum) { strategy = createStrategy(newSum.getClass()); strategy.add(newSum); }
public void visit(Feature feature) { Object value = expr.evaluate(feature); if (strategy == null) { strategy = createStrategy(value.getClass()); } strategy.add(value); }
public void visit(Feature feature) { Object value = expr.evaluate(feature); if (strategy == null) { strategy = createStrategy(value.getClass()); } strategy.add(value); }
public SumVisitor(int attributeTypeIndex, FeatureType type) throws IllegalFilterException { FilterFactory factory = CommonFactoryFinder.getFilterFactory(null); AttributeType attributeType = type.getAttributeType(attributeTypeIndex); expr = factory.property(attributeType.getName()); createStrategy(attributeType.getType()); }
public SumVisitor(String attrName, FeatureType type) throws IllegalFilterException { FilterFactory factory = CommonFactoryFinder.getFilterFactory(null); AttributeType attributeType = type.getAttributeType(attrName); expr = factory.property(attributeType.getName()); createStrategy(attributeType.getType()); }
public SumVisitor(int attributeTypeIndex, SimpleFeatureType type) throws IllegalFilterException { FilterFactory factory = CommonFactoryFinder.getFilterFactory(null); AttributeDescriptor attributeType = type.getDescriptor(attributeTypeIndex); expr = factory.property(attributeType.getLocalName()); createStrategy(attributeType.getType().getBinding()); }
public SumVisitor(String attrName, SimpleFeatureType type) throws IllegalFilterException { FilterFactory factory = CommonFactoryFinder.getFilterFactory(null); AttributeDescriptor attributeType = type.getDescriptor(attrName); expr = factory.property(attributeType.getLocalName()); createStrategy(attributeType.getType().getBinding()); }