Commits

tbrugz committed 3ae65ad

edge: added label & stereotype

Comments (0)

Files changed (2)

src/tbrugz/graphml/DumpGraphMLModel.java

 	}
 
 	public void outEdgeContents(Edge l, int level) {
-		outSnippet(getSnippetId(l, "edge"), level);
+		outSnippet(getSnippetId(l, "edge"), level, l.getName());
 	}
 
 	public void outNodeContents(Node t, int level) {

src/tbrugz/graphml/model/Edge.java

 	//Node target;
 	String target;
 	String source;
+	String stereotype;
 
 	public String getName() {
 		return name;
 	}
 	
 	public String getStereotype() {
-		return null;
+		return stereotype;
 	}
 	public void setStereotype(String s) {
+		this.stereotype = s;
 	}
 	public String getStereotypeParam(int i) {
 		return null;