Package org.dlese.dpc.index.reader
Class SimpleDocReader
java.lang.Object
org.dlese.dpc.index.reader.DocReader
org.dlese.dpc.index.reader.SimpleDocReader
A bean that provides a simple implementataion of the
DocReader
interface. This DocReader is used when no other is available.- Author:
- John Weatherley
-
Field Summary
-
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the SimpleDocReader objectSimpleDocReader(org.apache.lucene.document.Document doc) Constructor that may be used programatically to wrap a reader around a LuceneDocumentcreated by aDocWriter. -
Method Summary
Modifier and TypeMethodDescriptionGets a String describing the reader type.voidinit()Init method does nothing.Methods inherited from class org.dlese.dpc.index.reader.DocReader
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
-
Constructor Details
-
SimpleDocReader
public SimpleDocReader()Constructor for the SimpleDocReader object -
SimpleDocReader
public SimpleDocReader(org.apache.lucene.document.Document doc) Constructor that may be used programatically to wrap a reader around a LuceneDocumentcreated by aDocWriter. Sets the score to 0.- Parameters:
doc- A LuceneDocumentcreated by aDocWriter.
-
-
Method Details
-
init
public void init()Init method does nothing. -
getReaderType
Gets a String describing the reader type. This may be used in (Struts) beans to determine which type of reader is available for a given search result and thus what data is available for display in the UI. The reader type implies which getter methods are available.- Specified by:
getReaderTypein classDocReader- Returns:
- The readerType value.
-