1
2
3
4
5
6
7
8
9
10
11 package edu.uci.ics.jung.io.graphml;
12
13 import java.util.HashMap;
14 import java.util.Map;
15
16
17
18
19
20
21 public abstract class AbstractMetadata implements Metadata {
22
23 final private Map<String,String> properties = new HashMap<String, String>();
24
25 public Map<String, String> getProperties() {
26 return properties;
27 }
28
29 public String getProperty(String key) {
30 return properties.get(key);
31 }
32
33 public String setProperty(String key, String value) {
34 return properties.put(key, value);
35 }
36
37 public void addData(DataMetadata data) {
38 properties.put(data.getKey(), data.getValue());
39 }
40 }