|
DLESE Tools v1.2 |
||||||||||
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.ItemDocReader
Provides getter methods to read data from a item-level metadata record in a Lucene
Document
that was created by a org.dlese.dpc.index.writer.ItmeFileIndexingWriter
. The getter methods can then be
accessed from (Struts) beans that need the data. This class may be extended for each
document type that might be returned in a search. For example: DLESE-IMS, ADN-i, ADN-c
or DC. Instances of this class and sublcasses are created by ResultDoc
. After implemeting a new ItemDocReader, a new switch to
access it should be added to class ResultDoc
. In general,
one ItemDocReader may be created for each document type that is defined in package
org.dlese.dpc.index.writer
.
ItemFileIndexingWriter
,
Serialized FormField Summary |
---|
Fields inherited from class org.dlese.dpc.index.reader.XMLDocReader |
---|
recordDataService, vocab |
Fields inherited from class org.dlese.dpc.index.reader.DocReader |
---|
conf, doc, score |
Constructor Summary | |
---|---|
ItemDocReader(Document doc,
float score,
ResultDocConfig conf)
Constructor that is used by ResultDoc at search time to
create a new instance. |
|
ItemDocReader(Document doc,
SimpleLuceneIndex index)
Constructor that may be used programatically to wrap a reader around a Lucene Document created by a ItemFileIndexingWriter . |
Method Summary | |
---|---|
String |
getAccessionStatus()
Gets the AccessionStatus attribute of the XMLDocReader object |
String[] |
getAllAssociatedCollectionKeys()
Gets the collection keys for all collections that are associated with this resource including collections that are not enabled. |
ResultDoc[] |
getAllItemResultDocs()
Gets the ItemDocReaders for all records that refer to this resource. |
String[] |
getAnnoCollectionKeys()
Gets the annoCollectionKeys attribute of the ItemDocReader object |
String[] |
getAnnoPathways()
Gets the anno pathways that are associated with this record. |
String[] |
getAnnoStatus()
Gets the annoStatus attribute of the ItemDocReader object |
ResultDoc[] |
getAnnotationResultDocs()
Gets the ResultDocs for all annotations that refer to this resource. |
String[] |
getAnnoTypes()
Gets the anno types that are associated with this record. |
ArrayList |
getAssociatedCollectionKeys()
Gets the collection keys for all enabled collections that are associated with this resource. |
String[] |
getAssociatedIds()
Gets the IDs of records that refer to the same resource. |
ResultDoc[] |
getAssociatedItemResultDocs()
Gets the ItemDocReaders for all associated items for this item (refer to same resource). |
ArrayList |
getAudioAnnosInProgress()
|
String[] |
getCollections()
Gets the collections associated with this record as an array of Strings. |
String |
getCollectionsString()
Gets the collections associated with this record as a single String. |
ArrayList |
getCompletedAdvice()
|
ArrayList |
getCompletedAnnos()
|
ArrayList |
getCompletedAnnosOfType(String type)
|
ArrayList |
getCompletedAnnotation()
|
ArrayList |
getCompletedAverageScores()
|
ArrayList |
getCompletedBias()
|
ArrayList |
getCompletedChallengingSituations()
|
ArrayList |
getCompletedChange()
|
ArrayList |
getCompletedComment()
|
ArrayList |
getCompletedEditorSummaries()
|
ArrayList |
getCompletedEducationalStandard()
|
ArrayList |
getCompletedExample()
|
ArrayList |
getCompletedExplanation()
|
ArrayList |
getCompletedQuestion()
|
ArrayList |
getCompletedReviews()
|
ArrayList |
getCompletedSeeAlso()
|
ArrayList |
getCompletedTeachingTips()
|
String[] |
getContentStandards()
Gets the contentStandards attribute of the ItemDocReader object |
String |
getDescription()
Gets the description attribute of the ItemDocReader object |
ResultDoc[] |
getDisplayableAssociatedItemResultDocs()
Gets the ItemDocReaders for all associated items (refer to same resource) for this item that have an appropriate status for display in discovery. |
String[] |
getErrorStrings()
Gets the errors identified by the ID mapper for this records. |
String[] |
getErrorTypes()
Gets the errors types (codes) identified by the ID mapper for this records. |
String[] |
getGradeRanges()
Gets the gradeRanges attribute of the ItemDocReader object |
ArrayList |
getGraphicalAnnosInProgress()
|
String |
getHasCompletedAnno()
|
String |
getHasInProgressAnno()
|
ArrayList |
getInProgressAnnosOfStatus(String type)
|
String[] |
getKeywords()
Gets the keywords as an array. |
String |
getKeywordsDisplay()
Gets the keywords a comma separated list terminated with a period suitable for display to users. |
ArrayList |
getMissingAssociatedItemIds()
Gets the missingAssociatedItemIds for associated items that are not in the index. |
String |
getMultiAccessionStatus()
Gets the multiAccessionStatus attribute of the XMLDocReader object |
String |
getMultiDescription()
Gets the multiDescription attribute of the ItemDocReader object |
String[] |
getMultiGradeRanges()
Gets the multiGradeRanges attribute of the ItemDocReader object |
String |
getMultiIds()
Gets the multiIds attribute of the ItemDocReader object |
String |
getMultiRecordStatus()
Gets the multiRecordStatus attribute of the ItemDocReader object |
String |
getMultiTitle()
Gets the title attribute of the ItemDocReader object |
String |
getNumAudioAnnosInProgress()
|
String |
getNumCompletedAnnos()
|
String |
getNumGraphicalAnnosInProgress()
|
String |
getNumInProgressAnnos()
|
String |
getNumTextAnnosInProgress()
|
String |
getPartOfDRC()
Gets part of DRC status (true or false). |
String |
getReaderType()
Gets the String 'ItemDocReader,' which is the key that describes this reader type. |
String[] |
getResourceTypes()
Gets the resourceTypes attribute of the ItemDocReader object |
String[] |
getSubjects()
Gets the subjects attribute of the ItemDocReader object |
ArrayList |
getTextAnnosInProgress()
|
String |
getTitle()
Gets the title attribute of the ItemDocReader object |
String |
getUrl()
Gets the url attribute of the ItemDocReader object |
boolean |
hasAnnotations()
DESCRIPTION |
boolean |
hasCompletedAnno()
|
boolean |
hasCompletedAnnoOfType(String type)
|
boolean |
hasInProgressAnno()
|
boolean |
hasInProgressAnnoOfStatus(String type)
|
boolean |
isMultiRecord()
Gets the multiRecord attribute of the ItemDocReader object |
Methods inherited from class org.dlese.dpc.index.reader.XMLDocReader |
---|
getAvailableFormats, getCollectionKey, getCollectionKeys, getDocsource, getFieldName, getId, getIndexedContent, getMetadataPrefix, getNativeFormat, getOaiDatestamp, getOaiLastModifiedString, getSets, getSetString, getValidationReport, getXml, getXmlFormat, getXmlStripped, isValid, setXMLConversionService |
Methods inherited from class org.dlese.dpc.index.reader.FileIndexingServiceDocReader |
---|
fileExists, getDateStamp, getDeleted, getDocDir, getDocsourceEncoded, getDoctype, getFileExists, getFileName, getFullContent, getLastModified, getLastModifiedString, getSourceFile, isDeleted, prtln, prtlnErr, setDebug |
Methods inherited from class org.dlese.dpc.index.reader.DocReader |
---|
getDocument, getIndex, getQuery, getScore, setDoc |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ItemDocReader(Document doc, float score, ResultDocConfig conf)
ResultDoc
at search time to
create a new instance.
doc
- The Lucene Document that is read.score
- The rank of the Document in a set of results.conf
- DESCRIPTIONpublic ItemDocReader(Document doc, SimpleLuceneIndex index)
Document
created by a ItemFileIndexingWriter
.
doc
- A Lucene Document
created by a
ItemFileIndexingWriter
.index
- DESCRIPTIONMethod Detail |
public String getReaderType()
getReaderType
in class XMLDocReader
public String getTitle()
public String[] getKeywords()
public String getKeywordsDisplay()
public String getMultiTitle()
public String getDescription()
public String getMultiDescription()
public String getMultiIds()
public String[] getMultiGradeRanges()
public String getPartOfDRC()
public String getUrl()
public String getCollectionsString()
XMLDocReader.getSetString()
.
public String[] getCollections()
XMLDocReader.getSets()
.
getCollections
in class XMLDocReader
public String getAccessionStatus()
public String getMultiAccessionStatus()
public String[] getGradeRanges()
public String[] getSubjects()
public String[] getContentStandards()
public String[] getResourceTypes()
public String getMultiRecordStatus()
public boolean isMultiRecord()
public boolean hasAnnotations()
public String[] getAnnoTypes()
public String[] getAnnoPathways()
public String[] getAnnoStatus()
public String[] getAnnoCollectionKeys()
public ArrayList getAssociatedCollectionKeys()
public String[] getAllAssociatedCollectionKeys()
public String[] getAssociatedIds()
public String[] getErrorTypes()
public String[] getErrorStrings()
public ResultDoc[] getAllItemResultDocs()
public ResultDoc[] getAssociatedItemResultDocs()
public ResultDoc[] getDisplayableAssociatedItemResultDocs()
public ArrayList getMissingAssociatedItemIds()
public ResultDoc[] getAnnotationResultDocs()
public boolean hasCompletedAnno()
public String getHasCompletedAnno()
public String getNumCompletedAnnos()
public String getNumInProgressAnnos()
public String getNumTextAnnosInProgress()
public String getNumAudioAnnosInProgress()
public String getNumGraphicalAnnosInProgress()
public boolean hasCompletedAnnoOfType(String type)
public ArrayList getCompletedAnnosOfType(String type)
public String getHasInProgressAnno()
public boolean hasInProgressAnno()
public boolean hasInProgressAnnoOfStatus(String type)
public ArrayList getInProgressAnnosOfStatus(String type)
public ArrayList getTextAnnosInProgress()
public ArrayList getAudioAnnosInProgress()
public ArrayList getGraphicalAnnosInProgress()
public ArrayList getCompletedAnnos()
public ArrayList getCompletedReviews()
public ArrayList getCompletedTeachingTips()
public ArrayList getCompletedEditorSummaries()
public ArrayList getCompletedChallengingSituations()
public ArrayList getCompletedAverageScores()
public ArrayList getCompletedAdvice()
public ArrayList getCompletedAnnotation()
public ArrayList getCompletedBias()
public ArrayList getCompletedChange()
public ArrayList getCompletedComment()
public ArrayList getCompletedEducationalStandard()
public ArrayList getCompletedExample()
public ArrayList getCompletedExplanation()
public ArrayList getCompletedQuestion()
public ArrayList getCompletedSeeAlso()
|
DLESE Tools v1.2 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |