1 package jalview.io.xdb.genbank;
3 public class GenBankReference
11 private String descriptor;
13 private String authors;
17 private String journal;
19 private String pubmed;
21 private String medline;
23 private String consortia;
25 private String remark;
27 public GenBankReference()
32 public String getDescriptor()
37 public void setDescriptor(String descriptor)
39 this.descriptor = descriptor;
42 public String getAuthors()
47 public void setAuthors(String authors)
49 this.authors = authors;
52 public String getTitle()
57 public void setTitle(String title)
62 public String getJournal()
67 public void setJournal(String journal)
69 this.journal = journal;
72 public String getPubmed()
77 public void setPubmed(String pubmed)
87 public void setOrder(int order)
97 public void setBegin(int begin)
107 public void setEnd(int end)
112 public String getMedline()
117 public void setMedline(String medline)
119 this.medline = medline;
122 public String getConsortia()
127 public void setConsortia(String consortia)
129 this.consortia = consortia;
132 public String getRemark()
137 public void setRemark(String remark)
139 this.remark = remark;
142 public String toString()
144 // References has the following format
145 // REFERENCE 1 (bases 1 to 1976)
146 // AUTHORS Spritz,R.A., DeRiel,J.K., Forget,B.G. and Weissman,S.M.
147 // TITLE Complete nucleotide sequence of the human delta-globin gene
148 // JOURNAL Cell 21 (3), 639-646 (1980)
151 StringBuffer buf = new StringBuffer();
152 buf.append("REFERENCE ").append(this.getOrder()).append(" (bases ")
153 .append(this.getBegin()).append(" to ").append(this.getEnd())
155 if (this.getAuthors() != null)
156 buf.append(" AUTHORS ").append(this.getAuthors()).append("\n");
157 if (this.getTitle() != null)
158 buf.append(" TITLE ").append(this.getTitle()).append("\n");
159 if (this.getJournal() != null)
160 buf.append(" JOURNAL ").append(this.getJournal()).append("\n");
161 if (this.getPubmed() != null)
162 buf.append(" PUBMED ").append(this.getPubmed()).append("\n");
164 if (this.getMedline() != null)
165 buf.append(" MEDLINE ").append(this.getMedline()).append("\n");
167 if (this.getRemark() != null)
168 buf.append(" REMARK ").append(this.getRemark()).append("\n");
170 if (this.getConsortia() != null)
171 buf.append(" CONSRTM ").append(this.getConsortia()).append("\n");
173 return buf.toString();