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 'endpoint' GraphML element.
15   *
16   * @author Nathan Mittler - nathan.mittler@gmail.com
17   *
18   * @see "http://graphml.graphdrawing.org/specification.html"
19   */
20  public class EndpointMetadata extends AbstractMetadata {
21  
22      public enum EndpointType {
23          IN,
24          OUT,
25          UNDIR
26      }
27      
28      private String id;
29      private String port;
30      private String node;
31      private String description;
32      private EndpointType endpointType = EndpointType.UNDIR;
33      
34      public String getId() {
35          return id;
36      }
37      public void setId(String id) {
38          this.id = id;
39      }
40      public String getPort() {
41          return port;
42      }
43      public void setPort(String port) {
44          this.port = port;
45      }
46      public String getNode() {
47          return node;
48      }
49      public void setNode(String node) {
50          this.node = node;
51      }
52      public EndpointType getEndpointType() {
53          return endpointType;
54      }
55      public void setEndpointType(EndpointType endpointType) {
56          this.endpointType = endpointType;
57      }        
58      public String getDescription() {
59          return description;
60      }
61      public void setDescription(String description) {
62          this.description = description;
63      }
64      public MetadataType getMetadataType() {
65          return MetadataType.ENDPOINT;
66      }
67      
68  }