package net.stuha.messages.formattedText;

public class Link extends TextNode {
    private String url;
    private String label;


    Link(String url, String label) {
        this.nodeType = NodeType.LINK;
        this.url = url;
        this.label = label;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getLabel() {
        return label;
    }

    public void setLabel(String label) {
        this.label = label;
    }
}

@@ -128,42 +128,24 @@
 l;%0A%0A
-%0A
     
-Link(String url, String label
+public Link(
 ) %7B%0A
@@ -183,16 +183,76 @@
 e.LINK;%0A
+    %7D%0A%0A    Link(String url, String label) %7B%0A        this();%0A
         

Parsing text