view software/mpdl-services-new/mpiwg-mpdl-cms/src/de/mpg/mpiwg/berlin/mpdl/cms/document/Document.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 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;
  }

}