@SuppressWarnings("unchecked") @Test public void testSetAttributes() throws Exception { Map<String, Attribute> map = new HashMap<String, Attribute>(); map.put(ATTRIBUTE_NAME, new StringAttribute("Heikant")); map.put(ATTRIBUTE_POPULATION, new IntegerAttribute(100)); featureModel.setAttributes(feature, map); Assert.assertEquals("Heikant", featureModel.getAttribute(feature, ATTRIBUTE_NAME).getValue()); }
@Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); }
GeoToolsFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); } }
GeoToolsFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); } GeoToolsFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); }
GeoToolsFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); } GeoToolsFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); @Override Attribute getAttribute(Object feature, String name); @Override Map<String, Attribute> getAttributes(Object feature); @Override Geometry getGeometry(Object feature); @Override String getId(Object feature); @Override int getSrid(); @Override Object newInstance(); @Override Object newInstance(String id); @Override boolean canHandle(Object feature); }
GeoToolsFeatureModel extends FeatureSourceRetriever implements FeatureModel { @Override public Attribute getAttribute(Object feature, String name) throws LayerException { return convertAttribute(asFeature(feature).getAttribute(name), name); } GeoToolsFeatureModel(DataStore dataStore, String featureSourceName, int srid,
			DtoConverterService converterService); @Override Attribute getAttribute(Object feature, String name); @Override Map<String, Attribute> getAttributes(Object feature); @Override Geometry getGeometry(Object feature); @Override String getId(Object feature); @Override int getSrid(); @Override Object newInstance(); @Override Object newInstance(String id); @Override boolean canHandle(Object feature);  }