View Javadoc

1   /*
2    * Copyright (c) 2008, the JUNG Project and the Regents of the University
3    * of California
4    * All rights reserved.
5    *
6    * This software is open-source under the BSD license; see either
7    * "license.txt" or
8    * http://jung.sourceforge.net/license.txt for a description.
9    */
10  
11  package edu.uci.ics.jung.io.graphml;
12  
13  import java.util.ArrayList;
14  import java.util.List;
15  
16  /**
17   * Maintains all the metadata read in from a single GraphML XML document.
18   */
19  public class GraphMLDocument {
20  
21      final private KeyMap keyMap = new KeyMap();
22      final private List<GraphMetadata> graphMetadata = new ArrayList<GraphMetadata>();
23  
24      public KeyMap getKeyMap() {
25          return keyMap;
26      }
27  
28      public List<GraphMetadata> getGraphMetadata() {
29          return graphMetadata;
30      }
31  
32      public void clear() {
33          graphMetadata.clear();
34          keyMap.clear();
35      }
36  }