mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-06-03 07:29:37 +00:00
38 lines
700 B
Java
38 lines
700 B
Java
package dk.camelot64.kickc.passes.reports;
|
|
|
|
|
|
/**
|
|
* A structure to generate reports expressed in the mermaid syntax for graphics generation.
|
|
*/
|
|
public abstract class Mermaid {
|
|
|
|
protected String id;
|
|
protected String title;
|
|
|
|
|
|
public Mermaid(String id, String title) {
|
|
this.id = id;
|
|
this.title = title;
|
|
}
|
|
|
|
public static String toID(String label) {
|
|
return label.replace(":","_").replace("@","_");
|
|
}
|
|
|
|
public String getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(String id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getTitle() {
|
|
return title;
|
|
}
|
|
|
|
public void setTitle(String title) {
|
|
this.title = title;
|
|
}
|
|
}
|