Mercurial > hg > mpdl-group
comparison 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 |
comparison
equal
deleted
inserted
replaced
22:6a45a982c333 | 23:e845310098ba |
---|---|
1 package de.mpg.mpiwg.berlin.mpdl.cms.document; | |
2 | |
3 import java.util.ArrayList; | |
4 | |
5 import org.apache.lucene.document.Fieldable; | |
6 | |
7 public class Document { | |
8 private org.apache.lucene.document.Document document; | |
9 private ArrayList<String> hitFragments; | |
10 | |
11 public Document(org.apache.lucene.document.Document luceneDocument) { | |
12 this.document = luceneDocument; | |
13 } | |
14 | |
15 public org.apache.lucene.document.Document getDocument() { | |
16 return document; | |
17 } | |
18 | |
19 public Fieldable getFieldable(String field) { | |
20 if (document != null) | |
21 return document.getFieldable(field); | |
22 else | |
23 return null; | |
24 } | |
25 | |
26 public void setDocument(org.apache.lucene.document.Document document) { | |
27 this.document = document; | |
28 } | |
29 | |
30 public ArrayList<String> getHitFragments() { | |
31 return hitFragments; | |
32 } | |
33 | |
34 public void setHitFragments(ArrayList<String> hitFragments) { | |
35 this.hitFragments = hitFragments; | |
36 } | |
37 | |
38 } |