245 |
public AttributeMetadataMap getAttributeMetaDataMap() { |
public AttributeMetadataMap getAttributeMetaDataMap() { |
246 |
if (map == null) { |
if (map == null) { |
247 |
|
|
248 |
map = new AttributeMetadataMap(); |
map = new AttributeMetadataMap(new String[] {Translation.getActiveLang()}); |
249 |
|
|
250 |
// Leaving out the first one, it will be the_geom |
// Leaving out the first one, it will be the_geom |
251 |
for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) { |
for (int i = 1; i < fs.getSchema().getAttributeCount(); i++) { |
252 |
AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i); |
AttributeDescriptor attDesc = fs.getSchema().getDescriptor(i); |
253 |
|
|
254 |
AttributeMetadata attMetaData = new AttributeMetadata(attDesc.getName()); |
AttributeMetadata attMetaData = new AttributeMetadata(attDesc.getName(), map.getLanguages()); |
255 |
map.put(attDesc.getName(), attMetaData); |
map.put(attDesc.getName(), attMetaData); |
256 |
} |
} |
257 |
} |
} |