diff software/mpdl-services-new/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/Hits.java @ 25:e9fe3186670c default tip

letzter Stand eingecheckt
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 21 May 2013 10:19:32 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/software/mpdl-services-new/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/Hits.java	Tue May 21 10:19:32 2013 +0200
@@ -0,0 +1,60 @@
+package de.mpg.mpiwg.berlin.mpdl.cms.document;
+
+import java.util.ArrayList;
+
+import org.apache.lucene.search.Query;
+
+public class Hits {
+  private ArrayList<Document> hits;
+  private Query query;
+  private int from;
+  private int to;
+  private int size = 0;
+  
+  public Hits(ArrayList<Document> hits, int from, int to) {
+    this.hits = hits;
+    this.from = from;
+    this.to = to;
+  }
+
+  public int getSize() {
+    return size;
+  }
+
+  public void setSize(int size) {
+    this.size = size;
+  }
+
+  public Query getQuery() {
+    return query;
+  }
+
+  public void setQuery(Query query) {
+    this.query = query;
+  }
+
+  public ArrayList<Document> getHits() {
+    return hits;
+  }
+
+  public void setHits(ArrayList<Document> hits) {
+    this.hits = hits;
+  }
+
+  public int getFrom() {
+    return from;
+  }
+
+  public void setFrom(int from) {
+    this.from = from;
+  }
+
+  public int getTo() {
+    return to;
+  }
+
+  public void setTo(int to) {
+    this.to = to;
+  }
+
+}