package org.opencb.biodata.models.commons;

import java.util.Map;

public class Software {

    private String name;
    private String version;
    private String commit;
    private String website;
    private Map<String, String> params;

    public Software() {
    }

    public Software(String name, String version, String commit, String website, Map<String, String> params) {
        this.name = name;
        this.version = version;
        this.commit = commit;
        this.website = website;
        this.params = params;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("Software{");
        sb.append("name='").append(name).append('\'');
        sb.append(", version='").append(version).append('\'');
        sb.append(", commit='").append(commit).append('\'');
        sb.append(", website='").append(website).append('\'');
        sb.append(", params=").append(params);
        sb.append('}');
        return sb.toString();
    }

    public String getName() {
        return name;
    }

    public Software setName(String name) {
        this.name = name;
        return this;
    }

    public String getVersion() {
        return version;
    }

    public Software setVersion(String version) {
        this.version = version;
        return this;
    }

    public String getCommit() {
        return commit;
    }

    public Software setCommit(String commit) {
        this.commit = commit;
        return this;
    }

    public String getWebsite() {
        return website;
    }

    public Software setWebsite(String website) {
        this.website = website;
        return this;
    }

    public Map<String, String> getParams() {
        return params;
    }

    public Software setParams(Map<String, String> params) {
        this.params = params;
        return this;
    }

}

@@ -134,24 +134,55 @@
 ng version;%0A
+    private String repository;%0A
     private 
@@ -192,24 +192,24 @@
 ing commit;%0A
-
     private 
@@ -288,32 +288,48 @@
 ware() %7B%0A    %7D%0A%0A
+    @Deprecated%0A
     public Softw
@@ -575,24 +575,348 @@
 ams;%0A    %7D%0A%0A
+    public Software(String name, String version, String repository, String commit, String website, Map%3CString, String%3E params) %7B%0A        this.name = name;%0A        this.version = version;%0A        this.repository = repository;%0A        this.commit = commit;%0A        this.website = website;%0A        this.params = params;%0A    %7D%0A%0A
     @Overrid
@@ -1123,32 +1123,101 @@
 ).append('%5C'');%0A
+        sb.append(%22, repository='%22).append(repository).append('%5C'');%0A
         sb.appen
@@ -1752,32 +1752,223 @@
 rn this;%0A    %7D%0A%0A
+    public String getRepository() %7B%0A        return repository;%0A    %7D%0A%0A    public Software setRepository(String repository) %7B%0A        this.repository = repository;%0A        return this;%0A    %7D%0A%0A
     public Strin
@@ -2477,17 +2477,16 @@
 n this;%0A
+
     %7D%0A
-%0A
 %7D%0A

add 'repository' to Software data model