package org.apache.lucene;

public class SearchResult {
	private String source;
	private String title;
	private String author;
	private String origin1;
	private String origin2;
	private String content;
	private int PMID;
	
	public String getSource() {
		return source;
	}
	public String getTitle() {
		return title;
	}
	public String getAuthor() {
		return author;
	}
	public String getOrigin1() {
		return origin1;
	}
	public String getOrigin2() {
		return origin2;
	}
	public String getContent() {
		return content;
	}
	public int getPMID() {
		return PMID;
	}
	public void setSource(String source) {
		this.source = source;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public void setAuthor(String author) {
		this.author = author;
	}
	public void setOrigin1(String origin1) {
		this.origin1 = origin1;
	}
	public void setOrigin2(String origin2) {
		this.origin2 = origin2;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public void setPMID(int pMID) {
		PMID = pMID;
	}	
}

@@ -49,16 +49,17 @@
 esult %7B%0A
+%0A
 %09private
@@ -215,17 +215,322 @@
 t PMID;%0A
-%09
+%0A%09public SearchResult(String source, String title, String author,%0A%09%09%09String origin1, String origin2, String content, int pMID) %7B%0A%09%09super();%0A%09%09this.source = source;%0A%09%09this.title = title;%0A%09%09this.author = author;%0A%09%09this.origin1 = origin1;%0A%09%09this.origin2 = origin2;%0A%09%09this.content = content;%0A%09%09PMID = pMID;%0A%09%7D%0A
 %0A%09public
@@ -563,32 +563,33 @@
 turn source;%0A%09%7D%0A
+%0A
 %09public String g
@@ -611,32 +611,33 @@
 eturn title;%0A%09%7D%0A
+%0A
 %09public String g
@@ -661,32 +661,33 @@
 turn author;%0A%09%7D%0A
+%0A
 %09public String g
@@ -713,32 +713,33 @@
 urn origin1;%0A%09%7D%0A
+%0A
 %09public String g
@@ -765,32 +765,33 @@
 urn origin2;%0A%09%7D%0A
+%0A
 %09public String g
@@ -817,32 +817,33 @@
 urn content;%0A%09%7D%0A
+%0A
 %09public int getP
@@ -864,24 +864,25 @@
 rn PMID;%0A%09%7D%0A
+%0A
 %09public void
@@ -932,24 +932,25 @@
  source;%0A%09%7D%0A
+%0A
 %09public void
@@ -996,24 +996,25 @@
 = title;%0A%09%7D%0A
+%0A
 %09public void
@@ -1064,24 +1064,25 @@
  author;%0A%09%7D%0A
+%0A
 %09public void
@@ -1136,24 +1136,25 @@
 origin1;%0A%09%7D%0A
+%0A
 %09public void
@@ -1208,24 +1208,25 @@
 origin2;%0A%09%7D%0A
+%0A
 %09public void
@@ -1284,16 +1284,17 @@
 ent;%0A%09%7D%0A
+%0A
 %09public 
@@ -1337,10 +1337,9 @@
 ID;%0A
+
 %09%7D
-%09
 %0A%7D%0A

Format code and add constructor