Mercurial > hg > mpdl-group
view 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 source
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; } }