public class ItemDocReader extends XMLDocReader
Document
that was
indexed from a DLESE item-level metadata record, such as ADN. The index writer that is responsible for
creating this type of Lucene Document
is a ItemFileIndexingWriter
.ItemFileIndexingWriter
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
ItemDocReader.RelatedResource
Data for a related resource.
|
XMLDocReader.VocabUiLabelsCollection
metadataVocab, recordDataService, repositoryManager
Constructor and Description |
---|
ItemDocReader()
Constructor for the ItemDocReader object
|
ItemDocReader(org.apache.lucene.document.Document doc,
SimpleLuceneIndex index)
Constructor that may be used programatically to wrap a reader around a Lucene
Document created by a ItemFileIndexingWriter . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccessionDate()
Gets the accession date as a String.
|
java.util.Date |
getAccessionDateDate()
Gets the accession date as a Java Date.
|
java.lang.String |
getAccessionStatus()
Gets the AccessionStatus for this record.
|
java.lang.String[] |
getAllAssociatedCollectionKeys()
Gets the collection keys for all collections that are associated with this resource including collections
that are not enabled.
|
java.lang.String[] |
getAllIds()
Gets all the IDs associated with this resource, including this record's ID.
|
ResultDocList |
getAllItemResultDocs()
Gets the ItemDocReaders for all records that refer to this resource.
|
java.lang.String[] |
getAnnoCollectionKeys()
Gets the annotataion collection keys, for example {06, 08}, for all collections that annotate this item.
|
java.util.ArrayList |
getAnnoFormats()
Gets the annotation formats that are associated with this item.
|
java.util.ArrayList |
getAnnoPathways()
Gets the anno pathways that are associated with this record.
|
java.lang.String[] |
getAnnoRatings()
Gets a String array of all annotation star ratings for this item in numerical form from 1 to 5, or null
if none.
|
java.util.ArrayList |
getAnnoStatus()
Gets the annotation statuses that are associated with this item.
|
ResultDocList |
getAnnotationResultDocs()
Gets the ResultDocs for all annotations that refer to this resource.
|
java.lang.String[] |
getAnnoTypes()
Gets the anno types that are associated with this record.
|
java.util.ArrayList |
getAssociatedCollectionKeys()
Gets the collection keys for all enabled collections that are associated with this resource.
|
java.lang.String[] |
getAssociatedIds()
Gets the IDs of records that refer to the same resource, not including this record's ID.
|
ResultDocList |
getAssociatedItemResultDocs()
Gets the ItemDocReaders for all associated items for this item (refer to same resource).
|
java.util.ArrayList |
getAudioAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'audio' annotations
for this resource. |
java.lang.String |
getAverageAnnoRating()
Gets a the average of all star ratings for this item as a String, or null if none.
|
float |
getAverageAnnoRatingFloat()
Gets a the average of all star ratings for this item as a float, or -1 if none.
|
java.lang.String[] |
getBeneficiary()
Gets the beneficiary attribute of the ItemDocReader object
|
java.lang.String |
getCollectionsString()
Gets the collections associated with this record as a single String.
|
java.util.ArrayList |
getCompletedAdvice()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'advice' annotations for
this resource. |
java.lang.String[] |
getCompletedAnnoCollectionKeys()
Gets the annotataion collection keys, for example {06, 08}, for all collections that annotate this item
with one or more status completed annotations.
|
java.util.ArrayList |
getCompletedAnnos()
Gets a list of
DleseAnnoDocReader s containing each of the completed annotations, regardless of
type, for this resource. |
java.util.ArrayList |
getCompletedAnnosOfType(java.lang.String type)
Gets a list of all completed annotataions for this item of the given type.
|
java.util.ArrayList |
getCompletedAnnotation()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'annotation' annotations
for this resource. |
java.util.ArrayList |
getCompletedAverageScores()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'average scores'
annotations for this resource. |
java.util.ArrayList |
getCompletedBias()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'bias' annotations for
this resource. |
java.util.ArrayList |
getCompletedChallengingSituations()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'challenging situation'
annotations for this resource. |
java.util.ArrayList |
getCompletedChange()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'change' annotations for
this resource. |
java.util.ArrayList |
getCompletedComment()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'comment' annotations
for this resource. |
java.util.ArrayList |
getCompletedEditorSummaries()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'editors summary'
annotations for this resource. |
java.util.ArrayList |
getCompletedEducationalStandard()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'educational standard'
annotations for this resource. |
java.util.ArrayList |
getCompletedExample()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'example' annotations
for this resource. |
java.util.ArrayList |
getCompletedExplanation()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'explanation'
annotations for this resource. |
java.util.ArrayList |
getCompletedQuestion()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'question' annotations
for this resource. |
java.util.ArrayList |
getCompletedReviews()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'review' annotations for
this resource. |
java.util.ArrayList |
getCompletedSeeAlso()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'see also' annotations
for this resource. |
java.util.ArrayList |
getCompletedTeachingTips()
Gets a list of
DleseAnnoDocReader s containing each of the completed type 'teaching tip'
annotations for this resource. |
java.util.Collection |
getContentStandardLabels()
Gets the content standard UI labels from the vocab manager for this record, for example 'Change,
constancy, and measurement', or 'NSES:K-4:Unifying Concepts and Processes Standards:Change, constancy,
and measurement' if the vocab manager is not available.
|
java.lang.String[] |
getContentStandards()
Gets the content standards for this record, for example 01, or 'NSES:K-4:Unifying Concepts and Processes
Standards:Change, constancy, and measurement' if no vocab manager is available.
|
java.lang.String |
getCreationDate()
Gets the created date as a String.
|
java.util.Date |
getCreationDateDate()
Gets the created date as a Java Date ADN XPath metaMetadata/dateInfo@created.
|
ResultDocList |
getDeDupedResultDocs()
Gets the de-duped ResultDocs for all records that refer to this resource from the dup items index, or
null if this is not a duped record.
|
java.lang.String |
getDescription()
Gets the description for this item.
|
ResultDocList |
getDisplayableAssociatedItemResultDocs()
Gets the ItemDocReaders for all associated items (refer to same resource) for this item that have an
appropriate status for display in discovery.
|
java.lang.String[] |
getErrorStrings()
Gets the errors identified by the ID mapper for this records.
|
java.lang.String[] |
getErrorTypes()
Gets the errors types (codes) identified by the ID mapper for this records.
|
java.util.Collection |
getGradeRangeLabels()
Gets the grade range UI labels from the vocab manager for this record, for example 'Primary (K-2)', or
'DLESE:Primary elementary' if the vocab manager is not available.
|
java.lang.String[] |
getGradeRanges()
Gets the grade ranges for this record, for example 07, or 'DLESE:Primary elementary' if no vocab manager
is available.
|
java.util.ArrayList |
getGraphicalAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'graphical'
annotations for this resource. |
java.lang.String |
getHasCompletedAnno()
Gets the hasCompletedAnno attribute of the ItemDocReader object
|
java.lang.String |
getHasInProgressAnno()
Determines whether the item has an annotation in progress.
|
java.lang.String |
getHasRelatedResource()
Determines whether this item has one or more related resources of any type.
|
java.util.ArrayList |
getInProgressAnnosOfFormat(java.lang.String format)
Gets all in-progress annotations for this item that have the given format, which is one of 'text',
'audio', 'graphical', or 'video'.
|
java.lang.String[] |
getInstructionalGoal()
Gets the instructionalGoal attribute of the ItemDocReader object
|
java.lang.String[] |
getKeywords()
Gets the keywords as a sorted array.
|
java.lang.String |
getKeywordsDisplay()
Gets the keywords as a sorted comma separated list terminated with a period suitable for display to
users.
|
java.util.ArrayList |
getMissingAssociatedItemIds()
Gets the missingAssociatedItemIds for associated items that are not in the index.
|
java.lang.String |
getMultiAccessionDate()
Gets the accession date for this muti-doc, as a date String, which is the date the resource first
appeared in the library among all records that catalog it.
|
java.util.Date |
getMultiAccessionDateDate()
Gets the accession date for this multi-doc as a Java Date, which is the date the resource first appeared
in the library among all records that catalog it.
|
java.lang.String |
getMultiAccessionStatus()
Gets the the concatinated accession statuses of all associated records for this item.
|
java.util.Collection |
getMultiContentStandardLabels()
Gets the content standard UI labels from the vocab manager for this record and all others that catalog
this resource, for example 'Change, constancy, and measurement', or 'NSES:K-4:Unifying Concepts and
Processes Standards:Change, constancy, and measurement' if the vocab manager is not available.
|
java.lang.String[] |
getMultiContentStandards()
Gets the content standards for this record and all others that catalog the same resource, for example 01,
or 'NSES:K-4:Unifying Concepts and Processes Standards:Change, constancy, and measurement' if no vocab
manager is available.
|
java.lang.String |
getMultiDescription()
Gets the concatinated descriptions of all associated records for this item.
|
java.util.List |
getMultiDisplayableRelatedResources()
Gets a List of RelatedResource Objects for each related resource from each of the records that catalog
this resource that have an appropriate status for display in discovery, or null if none.
|
protected org.apache.lucene.document.Document |
getMultiDoc()
Gets the multiDoc lucene Document for this item, or the single doc, if none available.
|
java.util.Collection |
getMultiGradeRangeLabels()
Gets the grade range UI labels from the vocab manager for this record and all others that catalog the
same resource, for example 'Primary (K-2)', or 'DLESE:Primary elementary' if the vocab manager is not
available.
|
java.lang.String[] |
getMultiGradeRanges()
Gets the grade ranges for this record and all others that catalog the same resource, for example 07, or
'DLESE:Primary elementary' if no vocab manager is available.
|
java.lang.String |
getMultiHasRelatedResource()
Determines whether this item has one or more related resources of any type from any records that catalogs
this resource.
|
java.lang.String |
getMultiIds()
Gets the the concatinated IDs of all associated records for this item.
|
java.lang.String[] |
getMultiKeywords()
Gets the keywords for all associated records as a sorted array.
|
java.lang.String |
getMultiRecordStatus()
Gets the value 'true' or 'false' depending on whether this item does or does not have multiple records
associated with it.
|
ResultDocList |
getMultiRelatedResourceByIdDocs()
Gets the multiRelatedResourceByIdDocs attribute of the ItemDocReader object
|
java.lang.String[] |
getMultiRelatedResourceIds()
Gets the IDs of all related resources that were cataloged by ID from all records that catalog this
resource, or null if none were present.
|
java.util.List |
getMultiRelatedResources()
Gets a List of RelatedResource Objects for each related resource from each of the records that catalog
this resource, or null if none.
|
java.lang.String[] |
getMultiRelatedResourceUrls()
Gets the URLs of all related resources that were cataloged by URL from all records that catalog this
resource, or null if none were present
|
java.lang.Object[] |
getMultiResourceTypeLabels()
Gets the resource type UI labels from the vocab manager for this record and all others that catalog the
same resource, for example 'Classroom activity', or 'DLESE:Learning materials:Classroom activity' if the
vocab manager is not available, sorted alphabetically.
|
java.lang.String[] |
getMultiResourceTypes()
Gets the resource types for this record and all others that catalog the same resource, for example 0c, or
'DLESE:Learning materials:Classroom activity' if no vocab manager is available.
|
java.lang.Object[] |
getMultiSubjectLabels()
Gets the subject UI labels from the vocab manager for this record and all others that catalog the same
resource, for example 'Biology', or 'DLESE:Biology' if the vocab manager is not available, sorted
alphabetically.
|
java.lang.String[] |
getMultiSubjects()
Gets the subjects for this item and all additional items associated via the ID mapper.
|
java.lang.String |
getMultiTitle()
Gets the concatinated title of all associated records for this item.
|
java.lang.String |
getMultiWhatsNewDate()
Gets the Whats New date for the multi-record as a String, which is the whats new date for this resource
across all records that catalog it.
|
java.util.Date |
getMultiWhatsNewDateDate()
Gets the Whats New date for the multi-record (if it exists) as a Date, which is the whats new date for
this resource across all records that catalog it.
|
java.lang.String |
getMultiWhatsNewType()
Gets the Whats New type for the multi-record (if it exists), which is one of 'itemnew,'
'itemannocomplete,' 'itemannoinprogress,' 'annocomplete,' 'annoinprogress,' 'drcannocomplete,'
'drcannoinprogress,' 'collection'.
|
java.lang.String |
getNumAnnoRatings()
Gets a the total number of star ratings for this item as a String.
|
int |
getNumAnnoRatingsInt()
Gets a the total number of star ratings for this item as a int.
|
java.lang.String |
getNumAudioAnnosInProgress()
Gets the numAudioAnnosInProgress attribute of the ItemDocReader object
|
java.lang.String |
getNumCompletedAnnos()
Gets the numCompletedAnnos attribute of the ItemDocReader object
|
java.lang.String |
getNumGraphicalAnnosInProgress()
Gets the numGraphicalAnnosInProgress attribute of the ItemDocReader object
|
java.lang.String |
getNumInProgressAnnos()
Gets the numInProgressAnnos attribute of the ItemDocReader object
|
java.lang.String |
getNumTextAnnosInProgress()
Gets the numTextAnnosInProgress attribute of the ItemDocReader object
|
java.lang.String |
getNumVideoAnnosInProgress()
Gets the number of video format annotations in progress for this item.
|
java.lang.String |
getPartOfDRC()
Gets the part-of-DRC status (true or false).
|
java.lang.String |
getReaderType()
Gets the String 'ItemDocReader,' which is the key that describes this reader type.
|
ResultDocList |
getRelatedResourceByIdDocs()
Gets the relatedResourceByIdDocs attribute of the ItemDocReader object
|
java.lang.String[] |
getRelatedResourceIds()
Gets the IDs of all related resources that were cataloged by ID, or null if none were present
|
java.lang.String[] |
getRelatedResourceUrls()
Gets the URLs of all related resources that were cataloged by URL, or null if none were present
|
java.lang.Object[] |
getResourceTypeLabels()
Gets the resource type UI labels from the vocab manager for this record, for example 'Classroom
activity', or 'DLESE:Learning materials:Classroom activity' if the vocab manager is not available, sorted
alphabetically.
|
java.lang.String[] |
getResourceTypes()
Gets the resource types for this record, for example 0c, or 'DLESE:Learning materials:Classroom activity'
if no vocab manager is available.
|
java.lang.Object[] |
getSubjectLabels()
Gets the subject UI labels from the vocab manager for this record, for example 'Biology', or
'DLESE:Biology' if the vocab manager is not available, sorted alphabetically.
|
java.lang.String[] |
getSubjects()
Gets the subjects for this record, for example 03, or 'DLESE:Biology' if no vocab manager is available.
|
java.lang.String[] |
getTeachingMethod()
Gets the teachingMethod attribute of the ItemDocReader object
|
java.util.ArrayList |
getTextAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'text' annotations for
this resource. |
java.lang.String |
getTitle()
Gets the title of the item.
|
java.lang.String[] |
getToolFor()
Gets the toolFor attribute of the ItemDocReader object
|
java.lang.String[] |
getTypicalAgeRange()
Gets the typicalAgeRange attribute of the ItemDocReader object
|
java.lang.String |
getUrl()
Gets the URL for this resource.
|
java.lang.String |
getUrlEncoded()
Gets the URL for this resource.
|
java.lang.String |
getUrlTruncated()
Gets the URL for this resource, truncated if it is very long
|
java.util.ArrayList |
getVideoAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'video' annotations
for this resource. |
boolean |
hasAnnotations()
Determines whether this item has annotations.
|
boolean |
hasCompletedAnno()
Determines whether this item has at least one completed annotation.
|
boolean |
hasCompletedAnnoOfType(java.lang.String type)
Determines whether this item has a completed annotataion of the given type, for example 'Review',
'Comment', 'Educational standard', etc.
|
boolean |
hasInProgressAnno()
Determines whether the item has an annotation in progress.
|
boolean |
hasInProgressAnnoOfFormat(java.lang.String format)
Determines whether the item has an annotation in progress of the given format, which is one of 'text',
'audio', 'graphical', or 'video'.
|
boolean |
hasMultiRelatedResource()
Determines whether this item has one or more related resources of any type from any records that catalogs
this resource.
|
boolean |
hasRelatedResource()
Determines whether this item has one or more related resources of any type.
|
void |
init()
Initializes the ItemDocReader at search time.
|
boolean |
isMultiRecord()
Determines whether this item does or does not have multiple records associated with it.
|
protected static void |
prtln(java.lang.String s)
Output a line of text to standard out, with datestamp, if debug is set to true.
|
protected static void |
prtlnErr(java.lang.String s)
Output a line of text to error out, with datestamp.
|
getAssignedByIdRelatedRecordsMap, getAssignedByUrlRelatedRecordsMap, getAssignedRelatedIdsOfType, getAssignedRelatedUrlsOfType, getAssignedRelationshipByIdTypes, getAssignedRelationshipByUrlTypes, getAssignedRelationshipsForItemsMap, getAvailableFormats, getCanDissiminateFormat, getCollection, getCollectionKey, getCollectionKeys, getCollectionLabel, getCollections, getDocsource, getFieldId, getHasAssignedRelations, getHasRelations, getId, getIdEncoded, getIdsOfRecordsWithAssignedRelationships, getIndexedContent, getIsMyCollectionDisabled, getIsMyCollectionEnabled, getMetadataPrefix, getMetadataVocab, getMetadataVocabAudience, getMetadataVocabLanguage, getMyCollectionDoc, getMyCollectionsRecordId, getNativeFormat, getNsdlDublinCoreXml, getOaiDatestamp, getOaiDublinCoreXml, getOaiLastModifiedString, getOaiSets, getRelatedIdsOfType, getRelatedRecordsMap, getRelationshipTypes, getRequestedXml, getRequestedXmlFormat, getSet, getSets, getSetString, getUiLabelFromVocabId, getUiLabelFromVocabName, getUiLabelsFromVocabIds, getValidationReport, getValueId, getW3CXmlDoc, getWhatsNewDate, getWhatsNewDateDate, getWhatsNewType, getXml, getXmlDoc, getXmlFormat, getXmlLocalized, getXmlStripped, isValid, 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 ItemDocReader()
public ItemDocReader(org.apache.lucene.document.Document doc, SimpleLuceneIndex index)
Document
created by a ItemFileIndexingWriter
.doc
- A Lucene Document
created by a ItemFileIndexingWriter
.index
- The SimpleLuceneIndex in usepublic void init()
init
in class XMLDocReader
protected org.apache.lucene.document.Document getMultiDoc()
XMLDocReader
getMultiDoc
in class XMLDocReader
public java.lang.String getReaderType()
getReaderType
in class XMLDocReader
public java.lang.String getTitle()
getTitle
in class XMLDocReader
public java.lang.String[] getKeywords()
public java.lang.String[] getMultiKeywords()
public java.lang.String getKeywordsDisplay()
public java.lang.String getMultiTitle()
public java.lang.String getDescription()
getDescription
in class XMLDocReader
public java.lang.String getMultiDescription()
public java.lang.String getMultiIds()
public java.lang.String getPartOfDRC()
public java.lang.String getUrl()
getUrl
in class XMLDocReader
public java.lang.String getUrlEncoded()
public java.lang.String getUrlTruncated()
public java.lang.String getCollectionsString()
XMLDocReader.getSetString()
.public java.lang.String getMultiWhatsNewType()
public java.lang.String getMultiWhatsNewDate()
XMLDocReader.getWhatsNewDate()
.public java.util.Date getMultiWhatsNewDateDate()
XMLDocReader.getWhatsNewDateDate()
.public java.lang.String getCreationDate()
public java.util.Date getCreationDateDate()
public java.lang.String getMultiAccessionDate()
getAccessionDate()
.public java.util.Date getMultiAccessionDateDate()
getAccessionDateDate()
.public java.lang.String getAccessionDate()
getMultiAccessionDate()
.public java.util.Date getAccessionDateDate()
getMultiAccessionDateDate()
.public java.lang.String getAccessionStatus()
public java.lang.String getMultiAccessionStatus()
public java.lang.String[] getBeneficiary()
public java.lang.String[] getToolFor()
public java.lang.String[] getInstructionalGoal()
public java.lang.String[] getTeachingMethod()
public java.lang.String[] getTypicalAgeRange()
public java.lang.String[] getGradeRanges()
public java.lang.String[] getMultiGradeRanges()
public java.util.Collection getGradeRangeLabels()
#setVocabInterface(String)
, otherwise the default will be used, which is
'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.gradeRangeLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.util.Collection getMultiGradeRangeLabels()
#setVocabInterface(String)
,
otherwise the default will be used, which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.multiGradeRangeLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.lang.String[] getSubjects()
public java.lang.String[] getMultiSubjects()
public java.lang.Object[] getSubjectLabels()
#setVocabInterface(String)
, otherwise the default will be used,
which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.subjectLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.lang.Object[] getMultiSubjectLabels()
#setVocabInterface(String)
,
otherwise the default will be used, which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.multiSubjectLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.lang.String[] getContentStandards()
public java.lang.String[] getMultiContentStandards()
public java.util.Collection getContentStandardLabels()
#setVocabInterface(String)
, otherwise the default will be used, which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.contentStandardLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.util.Collection getMultiContentStandardLabels()
#setVocabInterface(String)
, otherwise the default will be
used, which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.multiContentStandardLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.lang.String[] getResourceTypes()
public java.lang.String[] getMultiResourceTypes()
public java.lang.Object[] getResourceTypeLabels()
#setVocabInterface(String)
,
otherwise the default will be used, which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.resourceTypeLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.lang.Object[] getMultiResourceTypeLabels()
#setVocabInterface(String)
, otherwise the default will be used, which is 'dds.descr.en-us'.
An example application using JSTL might look like:
<%-- The following line is optional --%>
<c:set property="vocabInterface" target="${docReader}" value="dds.descr.en-us"/>
<c:forEach items="${docReader.multiResourceTypeLabels}" var="myVocabLabel">
${myVocabLabel}
</c:forEach>
public java.lang.String getMultiRecordStatus()
public boolean isMultiRecord()
public boolean hasAnnotations()
hasAnnotations
in class XMLDocReader
public java.lang.String[] getAnnoTypes()
getAnnoTypes
in class XMLDocReader
public java.util.ArrayList getAnnoPathways()
getAnnoPathways
in class XMLDocReader
public java.util.ArrayList getAnnoStatus()
getAnnoStatus
in class XMLDocReader
public java.util.ArrayList getAnnoFormats()
getAnnoFormats
in class XMLDocReader
public java.lang.String[] getAnnoRatings()
getAnnoRatings
in class XMLDocReader
public java.lang.String getAverageAnnoRating()
getAverageAnnoRating
in class XMLDocReader
public float getAverageAnnoRatingFloat()
getAverageAnnoRatingFloat
in class XMLDocReader
public java.lang.String getNumAnnoRatings()
getNumAnnoRatings
in class XMLDocReader
public int getNumAnnoRatingsInt()
getNumAnnoRatingsInt
in class XMLDocReader
public java.lang.String[] getAnnoCollectionKeys()
getAnnoCollectionKeys
in class XMLDocReader
public java.lang.String[] getCompletedAnnoCollectionKeys()
getCompletedAnnoCollectionKeys
in class XMLDocReader
public java.util.ArrayList getAssociatedCollectionKeys()
public java.lang.String[] getAllAssociatedCollectionKeys()
public java.lang.String[] getAssociatedIds()
getAssociatedIds
in class XMLDocReader
public java.lang.String[] getAllIds()
getAllIds
in class XMLDocReader
public java.lang.String[] getErrorTypes()
public java.lang.String[] getErrorStrings()
public ResultDocList getAllItemResultDocs()
public ResultDocList getDeDupedResultDocs()
getAllItemResultDocs()
.getAllItemResultDocs()
public ResultDocList getAssociatedItemResultDocs()
public ResultDocList getDisplayableAssociatedItemResultDocs()
public java.util.ArrayList getMissingAssociatedItemIds()
public boolean hasRelatedResource()
public boolean hasMultiRelatedResource()
public java.lang.String getHasRelatedResource()
public java.lang.String getMultiHasRelatedResource()
public java.lang.String[] getRelatedResourceIds()
public java.lang.String[] getMultiRelatedResourceIds()
public ResultDocList getRelatedResourceByIdDocs()
public ResultDocList getMultiRelatedResourceByIdDocs()
public java.util.List getMultiRelatedResources()
public java.util.List getMultiDisplayableRelatedResources()
public java.lang.String[] getRelatedResourceUrls()
public java.lang.String[] getMultiRelatedResourceUrls()
public ResultDocList getAnnotationResultDocs()
getAnnotationResultDocs
in class XMLDocReader
public boolean hasCompletedAnno()
hasCompletedAnno
in class XMLDocReader
public java.lang.String getHasCompletedAnno()
getHasCompletedAnno
in class XMLDocReader
public java.lang.String getNumCompletedAnnos()
getNumCompletedAnnos
in class XMLDocReader
public java.lang.String getNumInProgressAnnos()
getNumInProgressAnnos
in class XMLDocReader
public java.lang.String getNumTextAnnosInProgress()
getNumTextAnnosInProgress
in class XMLDocReader
public java.lang.String getNumAudioAnnosInProgress()
getNumAudioAnnosInProgress
in class XMLDocReader
public java.lang.String getNumGraphicalAnnosInProgress()
getNumGraphicalAnnosInProgress
in class XMLDocReader
public java.lang.String getNumVideoAnnosInProgress()
getNumVideoAnnosInProgress
in class XMLDocReader
public boolean hasCompletedAnnoOfType(java.lang.String type)
hasCompletedAnnoOfType
in class XMLDocReader
type
- The annotation typepublic java.util.ArrayList getCompletedAnnosOfType(java.lang.String type)
getCompletedAnnosOfType
in class XMLDocReader
type
- The annotation type, for example 'Review', 'Teaching tip', etc.DleseAnnoDocReader
s for all completed annotataions for this item of the
given type, or an empty list.public java.lang.String getHasInProgressAnno()
getHasInProgressAnno
in class XMLDocReader
public boolean hasInProgressAnno()
hasInProgressAnno
in class XMLDocReader
public boolean hasInProgressAnnoOfFormat(java.lang.String format)
hasInProgressAnnoOfFormat
in class XMLDocReader
format
- Annotation formatpublic java.util.ArrayList getInProgressAnnosOfFormat(java.lang.String format)
getInProgressAnnosOfFormat
in class XMLDocReader
format
- Annotation formatDleseAnnoDocReader
spublic java.util.ArrayList getTextAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'text' annotations for
this resource.getTextAnnosInProgress
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getAudioAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'audio' annotations
for this resource.getAudioAnnosInProgress
in class XMLDocReader
DleseAnnoDocReader
spublic java.util.ArrayList getGraphicalAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'graphical'
annotations for this resource.getGraphicalAnnosInProgress
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getVideoAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'video' annotations
for this resource.getVideoAnnosInProgress
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAnnos()
DleseAnnoDocReader
s containing each of the completed annotations, regardless of
type, for this resource.getCompletedAnnos
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedReviews()
DleseAnnoDocReader
s containing each of the completed type 'review' annotations for
this resource.getCompletedReviews
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedTeachingTips()
DleseAnnoDocReader
s containing each of the completed type 'teaching tip'
annotations for this resource.getCompletedTeachingTips
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedEditorSummaries()
DleseAnnoDocReader
s containing each of the completed type 'editors summary'
annotations for this resource.getCompletedEditorSummaries
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedChallengingSituations()
DleseAnnoDocReader
s containing each of the completed type 'challenging situation'
annotations for this resource.getCompletedChallengingSituations
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAverageScores()
DleseAnnoDocReader
s containing each of the completed type 'average scores'
annotations for this resource.getCompletedAverageScores
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAdvice()
DleseAnnoDocReader
s containing each of the completed type 'advice' annotations for
this resource.getCompletedAdvice
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAnnotation()
DleseAnnoDocReader
s containing each of the completed type 'annotation' annotations
for this resource.getCompletedAnnotation
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedBias()
DleseAnnoDocReader
s containing each of the completed type 'bias' annotations for
this resource.getCompletedBias
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedChange()
DleseAnnoDocReader
s containing each of the completed type 'change' annotations for
this resource.getCompletedChange
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedComment()
DleseAnnoDocReader
s containing each of the completed type 'comment' annotations
for this resource.getCompletedComment
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedEducationalStandard()
DleseAnnoDocReader
s containing each of the completed type 'educational standard'
annotations for this resource.getCompletedEducationalStandard
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedExample()
DleseAnnoDocReader
s containing each of the completed type 'example' annotations
for this resource.getCompletedExample
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedExplanation()
DleseAnnoDocReader
s containing each of the completed type 'explanation'
annotations for this resource.getCompletedExplanation
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedQuestion()
DleseAnnoDocReader
s containing each of the completed type 'question' annotations
for this resource.getCompletedQuestion
in class XMLDocReader
DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedSeeAlso()
DleseAnnoDocReader
s containing each of the completed type 'see also' annotations
for this resource.getCompletedSeeAlso
in class XMLDocReader
DleseAnnoDocReader
s or empty listprotected static void prtlnErr(java.lang.String s)
s
- The text that will be output to error out.protected static void prtln(java.lang.String s)
s
- The String that will be output.