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  /**
14   * Metadata structure for the 'port' GraphML element.
15   *
16   * @author Nathan Mittler - nathan.mittler@gmail.com
17   * 
18   * @see "http://graphml.graphdrawing.org/specification.html"
19   */
20  public class PortMetadata extends AbstractMetadata {
21  
22      private String name;
23      private String description;
24      
25      public String getName() {
26          return name;
27      }
28      
29      public void setName(String name) {
30          this.name = name;
31      }
32      
33      public String getDescription() {
34          return description;
35      }
36      
37      public void setDescription(String desc) {
38          this.description = desc;
39      }
40      
41      public MetadataType getMetadataType() {
42          return MetadataType.PORT;
43      }
44  
45  }