public class DleseAnnoDocReader extends XMLDocReader
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 FormXMLDocReader.VocabUiLabelsCollection
metadataVocab, recordDataService, repositoryManager
Constructor and Description |
---|
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 . |
Modifier and Type | Method and Description |
---|---|
ResultDoc |
getAnnotatedItemResultDoc()
Gets the ResultDoc of the item this annotates, or null if not available.
|
java.lang.String |
getDate()
Deprecated.
As of annotation framework v1.0, this field no longer exists.
|
java.util.Date |
getDateDate()
Deprecated.
As of annotation framework v1.0, this field no longer exists.
|
java.lang.String |
getDescription()
Gets the content of the annotation itself, or empty if none.
|
java.lang.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'.
|
java.lang.String |
getIsPartOfDrc()
True if the annotation that is part of the DRC, false otherwise.
|
boolean |
getIsRetired()
Determines whether the annotation status is 'retired'.
|
java.lang.String |
getItemId()
Gets the ID of the item this annotates.
|
java.lang.String |
getPathway()
Gets the annotation pathway, for example 'CRS (Community Review System)'.
|
java.lang.String |
getRating()
Gets the star rating as a number from 1 to 5 or empty if none assigned.
|
java.lang.String |
getReaderType()
Gets the String 'DleseAnnoDocReader,' which is the key that describes this reader type.
|
java.lang.String |
getServiceName()
Gets the serviceName attribute of the DleseAnnoDocReader object
|
java.lang.String |
getStatus()
Gets the status of the annotation, which is one of 'completed', 'in progress' or 'retired'.
|
java.lang.String |
getTitle()
Gets the title of the annotation.
|
java.lang.String |
getType()
Gets the type of annotation, for example 'Review', 'Comment', 'Educational standard', etc.
|
java.lang.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.
|
getAllIds, getAnnoCollectionKeys, getAnnoFormats, getAnnoPathways, getAnnoRatings, getAnnoStatus, getAnnotationResultDocs, getAnnoTypes, getAssignedByIdRelatedRecordsMap, getAssignedByUrlRelatedRecordsMap, getAssignedRelatedIdsOfType, getAssignedRelatedUrlsOfType, getAssignedRelationshipByIdTypes, getAssignedRelationshipByUrlTypes, getAssignedRelationshipsForItemsMap, getAssociatedIds, getAudioAnnosInProgress, getAvailableFormats, getAverageAnnoRating, getAverageAnnoRatingFloat, getCanDissiminateFormat, getCollection, getCollectionKey, getCollectionKeys, getCollectionLabel, getCollections, getCompletedAdvice, getCompletedAnnoCollectionKeys, getCompletedAnnos, getCompletedAnnosOfType, getCompletedAnnotation, getCompletedAverageScores, getCompletedBias, getCompletedChallengingSituations, getCompletedChange, getCompletedComment, getCompletedEditorSummaries, getCompletedEducationalStandard, getCompletedExample, getCompletedExplanation, getCompletedQuestion, getCompletedReviews, getCompletedSeeAlso, getCompletedTeachingTips, getDocsource, getFieldId, getGraphicalAnnosInProgress, getHasAssignedRelations, getHasCompletedAnno, getHasInProgressAnno, getHasRelations, getId, getIdEncoded, getIdsOfRecordsWithAssignedRelationships, getIndexedContent, getInProgressAnnosOfFormat, getIsMyCollectionDisabled, getIsMyCollectionEnabled, getMetadataPrefix, getMetadataVocab, getMetadataVocabAudience, getMetadataVocabLanguage, getMultiDoc, getMyCollectionDoc, getMyCollectionsRecordId, getNativeFormat, getNsdlDublinCoreXml, getNumAnnoRatings, getNumAnnoRatingsInt, getNumAudioAnnosInProgress, getNumCompletedAnnos, getNumGraphicalAnnosInProgress, getNumInProgressAnnos, getNumTextAnnosInProgress, getNumVideoAnnosInProgress, getOaiDatestamp, getOaiDublinCoreXml, getOaiLastModifiedString, getOaiSets, getRelatedIdsOfType, getRelatedRecordsMap, getRelationshipTypes, getRequestedXml, getRequestedXmlFormat, getSet, getSets, getSetString, getTextAnnosInProgress, getUiLabelFromVocabId, getUiLabelFromVocabName, getUiLabelsFromVocabIds, getValidationReport, getValueId, getVideoAnnosInProgress, getW3CXmlDoc, getWhatsNewDate, getWhatsNewDateDate, getWhatsNewType, getXml, getXmlDoc, getXmlFormat, getXmlLocalized, getXmlStripped, hasAnnotations, hasCompletedAnno, hasCompletedAnnoOfType, hasInProgressAnno, hasInProgressAnnoOfFormat, init, isValid, prtln, prtlnErr, setMetadataVocabAudience, setMetadataVocabLanguage, setRequestedXmlFormat
fileExists, getDateFileWasIndexed, getDateFileWasIndexedString, getDateStamp, getDeleted, getDocDir, getDocsourceEncoded, getDoctype, getFile, getFileExists, getFileName, getFullContent, getFullContentEncodedAs, getLastModified, getLastModifiedAsUTC, getLastModifiedString, isDeleted, setDebug
doInit, getAttribute, getDocMap, getDocument, getIndex, getLazyDocMap, getQuery, getRepositoryManager, getScore, setDoc
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
.public java.lang.String getReaderType()
getReaderType
in class XMLDocReader
public ResultDoc getAnnotatedItemResultDoc()
public java.lang.String getServiceName()
public java.lang.String getItemId()
public java.lang.String getTitle()
getTitle
in class XMLDocReader
public java.lang.String getDescription()
getDescription
in class XMLDocReader
getUrl()
public java.lang.String getUrl()
getUrl
in class XMLDocReader
getDescription()
public java.lang.String getPathway()
public java.lang.String getRating()
public java.lang.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 java.lang.String getFormat()
getStatus()
.public java.lang.String getType()
public java.lang.String getDate()
public java.util.Date getDateDate()
public java.lang.String getIsPartOfDrc()
public boolean isPartOfDrc()
public boolean getIsCompleted()
public boolean getIsInProgress()
public boolean getIsRetired()