|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.dlese.dpc.index.reader.DocReader org.dlese.dpc.index.reader.FileIndexingServiceDocReader org.dlese.dpc.index.reader.XMLDocReader org.dlese.dpc.index.reader.DleseAnnoDocReader
public class DleseAnnoDocReader
A bean for accessing the data stored in a Lucene Document
that was
indexed from a DLESE annotation-level metadata record. The index writer that is responsible for creating
this type of Lucene Document
is a DleseAnnoFileIndexingServiceWriter
.
ResultDoc
,
DleseAnnoFileIndexingServiceWriter
,
Serialized FormNested Class Summary |
---|
Nested classes/interfaces inherited from class org.dlese.dpc.index.reader.XMLDocReader |
---|
XMLDocReader.VocabUiLabelsCollection |
Field Summary |
---|
Fields inherited from class org.dlese.dpc.index.reader.XMLDocReader |
---|
metadataVocab, recordDataService, repositoryManager |
Fields inherited from class org.dlese.dpc.index.reader.DocReader |
---|
conf, doc, resultDoc, score |
Constructor Summary | |
---|---|
DleseAnnoDocReader()
Constructor for the DleseAnnoDocReader object |
|
DleseAnnoDocReader(org.apache.lucene.document.Document doc)
Constructor that may be used programatically to wrap a reader around a Lucene Document that was created by a FileIndexingServiceWriter . |
Method Summary | |
---|---|
ResultDoc |
getAnnotatedItemResultDoc()
Gets the ResultDoc of the item this annotates, or null if not available. |
String |
getDate()
Deprecated. As of annotation framework v1.0, this field no longer exists. |
Date |
getDateDate()
Deprecated. As of annotation framework v1.0, this field no longer exists. |
String |
getDescription()
Gets the content of the annotation itself, or empty if none. |
String |
getFormat()
Gets the format of the annotation, which is one of 'audio', 'graphical', 'text', or 'video'. |
boolean |
getIsCompleted()
Determines whether the annotation status is 'completed'. |
boolean |
getIsInProgress()
Determines whether the annotation status is 'in progress'. |
String |
getIsPartOfDrc()
True if the annotation that is part of the DRC, false otherwise. |
boolean |
getIsRetired()
Determines whether the annotation status is 'retired'. |
String |
getItemId()
Gets the ID of the item this annotates. |
String |
getPathway()
Gets the annotation pathway, for example 'CRS (Community Review System)'. |
String |
getRating()
Gets the star rating as a number from 1 to 5 or empty if none assigned. |
String |
getReaderType()
Gets the String 'DleseAnnoDocReader,' which is the key that describes this reader type. |
String |
getServiceName()
Gets the serviceName attribute of the DleseAnnoDocReader object |
String |
getStatus()
Gets the status of the annotation, which is one of 'completed', 'in progress' or 'retired'. |
String |
getTitle()
Gets the title of the annotation. |
String |
getType()
Gets the type of annotation, for example 'Review', 'Comment', 'Educational standard', etc. |
String |
getUrl()
Gets the url containing the content of the annotation, or empty if none. |
boolean |
isPartOfDrc()
True if the annotation that is part of the DRC, false otherwise. |
Methods inherited from class org.dlese.dpc.index.reader.FileIndexingServiceDocReader |
---|
fileExists, getDateFileWasIndexed, getDateFileWasIndexedString, getDateStamp, getDeleted, getDocDir, getDocsourceEncoded, getDoctype, getFile, getFileExists, getFileName, getFullContent, getFullContentEncodedAs, getLastModified, getLastModifiedAsUTC, getLastModifiedString, isDeleted, setDebug |
Methods inherited from class org.dlese.dpc.index.reader.DocReader |
---|
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DleseAnnoDocReader()
public DleseAnnoDocReader(org.apache.lucene.document.Document doc)
Document
that was created by a FileIndexingServiceWriter
.
doc
- A Lucene Document
created by a ItemFileIndexingWriter
.Method Detail |
---|
public String getReaderType()
getReaderType
in class XMLDocReader
public ResultDoc getAnnotatedItemResultDoc()
public String getServiceName()
public String getItemId()
public String getTitle()
getTitle
in class XMLDocReader
public String getDescription()
getDescription
in class XMLDocReader
getUrl()
public String getUrl()
getUrl
in class XMLDocReader
getDescription()
public String getPathway()
public String getRating()
public String getStatus()
getFormat()
. The status String here is the same regardless of whether the underlying record is in
framework version 1.0 or 0.1.
public String getFormat()
getStatus()
.
public String getType()
public String getDate()
public Date getDateDate()
public String getIsPartOfDrc()
public boolean isPartOfDrc()
public boolean getIsCompleted()
public boolean getIsInProgress()
public boolean getIsRetired()
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |