package org.rhq.metrics.restServlet;

/**
 * Just a simple representation of a Link
 * @author Heiko W. Rupp
 */
public class SimpleLink {
    private final String rel;
    private final String href;
    private final String title;

    public SimpleLink(String rel, String href, String title) {
        this.rel = rel;
        this.href = href;
        this.title = title;
    }

    public String getRel() {
        return rel;
    }

    public String getHref() {
        return href;
    }

    public String getTitle() {
        return title;
    }
}

@@ -35,82 +35,326 @@
 t;%0A%0A
-/**%0A * Just a simple representation of a Link%0A * @author Heiko W. Rupp%0A */
+import javax.xml.bind.annotation.XmlRootElement;%0A%0Aimport com.wordnik.swagger.annotations.ApiClass;%0Aimport com.wordnik.swagger.annotations.ApiProperty;%0A%0A/**%0A * Just a simple representation of a Link%0A * @author Heiko W. Rupp%0A */%0A@SuppressWarnings(%22unused%22)%0A@ApiClass(%22A simple representation of a link.%22)%0A@XmlRootElement
 %0Apub
@@ -384,30 +384,24 @@
     private 
-final 
 String rel;%0A
@@ -408,30 +408,24 @@
     private 
-final 
 String href;
@@ -441,14 +441,8 @@
 ate 
-final 
 Stri
@@ -452,16 +452,49 @@
 title;%0A%0A
+    public SimpleLink() %7B%0A    %7D%0A%0A
     publ
@@ -625,32 +625,73 @@
 = title;%0A    %7D%0A%0A
+    @ApiProperty(%22Name of the relation%22)%0A
     public Strin
@@ -722,32 +722,74 @@
 urn rel;%0A    %7D%0A%0A
+    @ApiProperty(%22Href to target entity%22)%0A
     public Strin
@@ -822,32 +822,71 @@
 rn href;%0A    %7D%0A%0A
+    @ApiProperty(%22Name of the target%22)%0A
     public Strin
@@ -927,11 +927,227 @@
 e;%0A    %7D
+%0A%0A    public void setRel(String rel) %7B%0A        this.rel = rel;%0A    %7D%0A%0A    public void setHref(String href) %7B%0A        this.href = href;%0A    %7D%0A%0A    public void setTitle(String title) %7B%0A        this.title = title;%0A    %7D
 %0A%7D%0A

Add stuff to make the xml body writer happy.