/[schmitzm]/trunk/src/skrueger/geotools/AttributeMetadataMap.java
ViewVC logotype

Contents of /trunk/src/skrueger/geotools/AttributeMetadataMap.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 420 - (show annotations)
Thu Oct 1 20:22:48 2009 UTC (15 years, 5 months ago) by alfonx
Original Path: branches/1.0-gt2-2.6/src/skrueger/geotools/AttributeMetadataMap.java
File MIME type: text/plain
File size: 740 byte(s)
* Lots of changes in this big commit for GP 1.3 
* New Interfaces: Checkable, Copyable, Cancellable, CancellableDialogAdapter to improve the GUI
* New DialogManager to unify the handling of all dialogs.
* GP-Feature: The dialog for editing/translating a DpEntry has been "enriched".
1 package skrueger.geotools;
2
3 import java.util.TreeMap;
4
5 import skrueger.AttributeMetaData;
6
7 /**
8 * An extension of TreeMap, that is clonable in the sense of
9 *
10 * @author stefan
11 *
12 */
13 public class AttributeMetadataMap extends TreeMap<Integer, AttributeMetaData>
14 implements Copyable<AttributeMetadataMap> {
15
16 public AttributeMetadataMap() {
17 }
18
19 @Override
20 public AttributeMetadataMap copyTo(AttributeMetadataMap amdMap) {
21
22 amdMap.clear();
23
24 for (Integer key : keySet()) {
25 AttributeMetaData attributeMetaData = get(key);
26 amdMap.put(key, attributeMetaData.copy());
27 }
28 return amdMap;
29 }
30
31 @Override
32 public AttributeMetadataMap copy() {
33 AttributeMetadataMap copy = new AttributeMetadataMap();
34 return copyTo(copy);
35 }
36 }

Properties

Name Value
svn:eol-style native
svn:keywords Id URL
svn:mime-type text/plain

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26