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 'edge' GraphML element.
15   *
16   * @author Nathan Mittler - nathan.mittler@gmail.com
17   *
18   * @see "http://graphml.graphdrawing.org/specification.html"
19   */
20  public class EdgeMetadata extends AbstractMetadata {
21  
22      private String id;
23      private Boolean directed;
24      private String source;
25      private String target;
26      private String sourcePort;
27      private String targetPort;
28      private String description;
29      private Object edge;
30      
31      public String getId() {
32          return id;
33      }
34  
35  
36      public void setId(String id) {
37          this.id = id;
38      }
39  
40  
41      public Boolean isDirected() {
42          return directed;
43      }
44  
45  
46      public void setDirected(Boolean directed) {
47          this.directed = directed;
48      }
49  
50  
51      public String getSource() {
52          return source;
53      }
54  
55  
56      public void setSource(String source) {
57          this.source = source;
58      }
59  
60  
61      public String getTarget() {
62          return target;
63      }
64  
65  
66      public void setTarget(String target) {
67          this.target = target;
68      }
69  
70  
71      public String getSourcePort() {
72          return sourcePort;
73      }
74  
75  
76      public void setSourcePort(String sourcePort) {
77          this.sourcePort = sourcePort;
78      }
79  
80  
81      public String getTargetPort() {
82          return targetPort;
83      }
84  
85  
86      public void setTargetPort(String targetPort) {
87          this.targetPort = targetPort;
88      }
89  
90  
91      public String getDescription() {
92          return description;
93      }
94  
95  
96      public void setDescription(String description) {
97          this.description = description;
98      }
99  
100     public Object getEdge() {
101         return edge;
102     }
103 
104 
105     public void setEdge(Object edge) {
106         this.edge = edge;
107     }
108 
109 
110     public MetadataType getMetadataType() {
111         return MetadataType.EDGE;
112     }
113 
114 }