diff software/mpdl-services/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/Document.java @ 23:e845310098ba

diverse Korrekturen
author Josef Willenborg <jwillenborg@mpiwg-berlin.mpg.de>
date Tue, 27 Nov 2012 12:35:19 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/software/mpdl-services/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/Document.java	Tue Nov 27 12:35:19 2012 +0100
@@ -0,0 +1,38 @@
+package de.mpg.mpiwg.berlin.mpdl.cms.document;
+
+import java.util.ArrayList;
+
+import org.apache.lucene.document.Fieldable;
+
+public class Document {
+  private org.apache.lucene.document.Document document;
+  private ArrayList<String> hitFragments;
+  
+  public Document(org.apache.lucene.document.Document luceneDocument) {
+    this.document = luceneDocument;
+  }
+
+  public org.apache.lucene.document.Document getDocument() {
+    return document;
+  }
+
+  public Fieldable getFieldable(String field) {
+    if (document != null)
+      return document.getFieldable(field);
+    else 
+      return null;
+  }
+  
+  public void setDocument(org.apache.lucene.document.Document document) {
+    this.document = document;
+  }
+
+  public ArrayList<String> getHitFragments() {
+    return hitFragments;
+  }
+
+  public void setHitFragments(ArrayList<String> hitFragments) {
+    this.hitFragments = hitFragments;
+  }
+
+}