package uk.ac.ebi.quickgo.annotation.download.header;


/**
 * @author Tony Wardell
 * Date: 23/05/2017
 * Time: 10:44
 * Created with IntelliJ IDEA.
 */
public class HeaderContent {

    private String uri;
    private boolean isSlimmed;
    private String date;

    public String date() {
        return date;
    }

    String uri() {
        return uri;
    }

    boolean isSlimmed(){
        return isSlimmed;
    }

    public static class  Builder{
        String uri;
        boolean isSlimmed;
        String date;

        public Builder uri(String uri){
            this.uri = uri;
            return this;
        }

        public Builder isSlimmed(boolean isSlimmed){
            this.isSlimmed = isSlimmed;
            return this;
        }

        public Builder date(String date){
            this.date = date;
            return this;
        }

        public HeaderContent build(){
            return new HeaderContent(this);
        }
    }

    private HeaderContent(Builder builder){
        this.uri = builder.uri;
        this.isSlimmed = builder.isSlimmed;
        this.date = builder.date;
    }
}

@@ -52,11 +52,121 @@
 r;%0A%0A
-%0A/*
+import java.util.List;%0A%0A/**%0A * Hold content used to populate and control the output of downloaded file headers.%0A 
 *%0A *
@@ -362,24 +362,65 @@
 String date;
+%0A    private List%3CString%3E selectedFields;
 %0A%0A    public
@@ -460,24 +460,98 @@
 ate;%0A    %7D%0A%0A
+    List%3CString%3E selectedFields() %7B%0A        return selectedFields;%0A    %7D%0A%0A
     String u
@@ -666,17 +666,16 @@
 c class 
- 
 Builder%7B
@@ -742,16 +742,53 @@
 ng date;
+%0A        List%3CString%3E selectedFields;
 %0A%0A      
@@ -1114,32 +1114,186 @@
 his;%0A        %7D%0A%0A
+        public Builder selectedFields(List%3CString%3E selectedFields)%7B%0A            this.selectedFields = selectedFields;%0A            return this;%0A        %7D%0A%0A
         public H
@@ -1525,20 +1525,74 @@
 ilder.date;%0A
+        this.selectedFields = builder.selectedFields;%0A
     %7D%0A%7D%0A

Add javadoc. Add selectedFields.