1 package jalview.io.xdb.genbank;
3 public class GenBankReference {
7 private String descriptor;
8 private String authors;
10 private String journal;
11 private String pubmed;
12 private String medline;
13 private String consortia;
14 private String remark;
16 public GenBankReference() {
20 public String getDescriptor() {
24 public void setDescriptor(String descriptor) {
25 this.descriptor = descriptor;
28 public String getAuthors() {
32 public void setAuthors(String authors) {
33 this.authors = authors;
36 public String getTitle() {
40 public void setTitle(String title) {
44 public String getJournal() {
48 public void setJournal(String journal) {
49 this.journal = journal;
52 public String getPubmed() {
56 public void setPubmed(String pubmed) {
60 public int getOrder() {
64 public void setOrder(int order) {
67 public int getBegin() {
71 public void setBegin(int begin) {
79 public void setEnd(int end) {
84 public String getMedline() {
88 public void setMedline(String medline) {
89 this.medline = medline;
92 public String getConsortia() {
96 public void setConsortia(String consortia) {
97 this.consortia = consortia;
100 public String getRemark() {
104 public void setRemark(String remark) {
105 this.remark = remark;
108 public String toString(){
109 // References has the following format
110 // REFERENCE 1 (bases 1 to 1976)
111 // AUTHORS Spritz,R.A., DeRiel,J.K., Forget,B.G. and Weissman,S.M.
112 // TITLE Complete nucleotide sequence of the human delta-globin gene
113 // JOURNAL Cell 21 (3), 639-646 (1980)
116 StringBuffer buf = new StringBuffer();
117 buf.append("REFERENCE ").append(this.getOrder()).append(" (bases ").append(this.getBegin()).append(" to ").append(this.getEnd()).append(")\n");
118 if (this.getAuthors()!=null)
119 buf.append(" AUTHORS ").append(this.getAuthors()).append("\n");
120 if (this.getTitle()!=null)
121 buf.append(" TITLE ").append(this.getTitle()).append("\n");
122 if (this.getJournal()!=null)
123 buf.append(" JOURNAL ").append(this.getJournal()).append("\n");
124 if (this.getPubmed()!=null)
125 buf.append(" PUBMED ").append(this.getPubmed()).append("\n");;
126 if (this.getMedline()!=null)
127 buf.append(" MEDLINE ").append(this.getMedline()).append("\n");;
128 if (this.getRemark()!=null)
129 buf.append(" REMARK ").append(this.getRemark()).append("\n");;
130 if (this.getConsortia()!=null)
131 buf.append(" CONSRTM ").append(this.getConsortia()).append("\n");;
132 return buf.toString();