public class XMLDocReader extends FileIndexingServiceDocReader
Document
that was returned from a search and from XML on
file.
In general, one XMLDocReader may be created for each document type that is defined in package org.dlese.dpc.index.writer
.
XMLFileIndexingWriter
,
Serialized FormModifier and Type | Class and Description |
---|---|
class |
XMLDocReader.VocabUiLabelsCollection
A collection of user interface labels derived from vocabulary field/value IDs.
|
Modifier and Type | Field and Description |
---|---|
protected MetadataVocab |
metadataVocab
The vocab manager
|
protected RecordDataService |
recordDataService
The record data service
|
protected RepositoryManager |
repositoryManager
The RepositoryManager
|
Constructor and Description |
---|
XMLDocReader()
Constructor for the XMLDocReader object
|
XMLDocReader(org.apache.lucene.document.Document doc)
Constructor that may be used programatically to wrap a reader around a Lucene
Document created by a FileIndexingServiceWriter . |
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAllIds()
Gets all the IDs associated with this resource, including this record's ID.
|
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.Map |
getAssignedByIdRelatedRecordsMap()
Gets a Map of records that this item assignes a relationship to by ID, keyed by relationship type, for
example 'isAnnotatedBy'.
|
java.util.Map |
getAssignedByUrlRelatedRecordsMap()
Gets a Map of record ResultDoc arrays that this item assignes a relationship to by URL, keyed by relationship type, for
example 'isAnnotatedBy'.
|
java.lang.String[] |
getAssignedRelatedIdsOfType(java.lang.String relationType)
Gets the record IDs for the items that this record assignes the given relationship to.
|
java.lang.String[] |
getAssignedRelatedUrlsOfType(java.lang.String relationType)
Gets the URLs for the items that this record assignes the given relationship to.
|
java.lang.String[] |
getAssignedRelationshipByIdTypes()
Gets the types of relationships that were asigned by this item by related ID, for example
'isAnnotatedBy'.
|
java.lang.String[] |
getAssignedRelationshipByUrlTypes()
Gets the types of relationships that were asigned by this item by related URL, for example
'isAnnotatedBy'.
|
java.util.Map |
getAssignedRelationshipsForItemsMap()
Gets a Map of record IDs and the corresponding relationships they are assigned.
|
java.lang.String[] |
getAssociatedIds()
Gets the IDs of records that refer to the same resource, not including this record's ID.
|
java.util.ArrayList |
getAudioAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'audio' annotations
for this resource. |
java.util.ArrayList |
getAvailableFormats()
Gets the XML formats that are available for this item including those that are available through
XMLConversionService . |
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.
|
boolean |
getCanDissiminateFormat()
Determine if XML for this item can be dissiminated in the requested format specified using the
setRequestedXmlFormat(String) , as available through XMLConversionService . |
java.lang.String |
getCollection()
Gets the primary collection associated with this item, for example 'dcc'.
|
java.lang.String |
getCollectionKey()
Gets the collection key associated with this record, for example 01.
|
java.lang.String[] |
getCollectionKeys()
Gets all collection keys associated with this record, for example {01,02}.
|
java.lang.String |
getCollectionLabel()
Gets the collection UI label from the vocab manager for this record, for example 'DLESE Community
Collection (DCC)', or the short title from the collection record if the vocab manager is not available.
|
java.lang.String[] |
getCollections()
Gets the collections associated with this record as an array of Strings, for example {dcc,comet}.
|
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.lang.String |
getDescription()
Gets the description for the item.
|
java.lang.String |
getDocsource()
Gets the path to the source file of the document used to create this index record.
|
protected java.lang.String |
getFieldId(java.lang.String fieldString,
java.lang.String metadataFormat)
Gets the field ID from the field name, for example 'gradeRange' will return 'gr'.
|
java.util.ArrayList |
getGraphicalAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'graphical'
annotations for this resource. |
boolean |
getHasAssignedRelations()
Determines whether this item assigns one or more relationships by ID or URL.
|
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.
|
boolean |
getHasRelations()
Determines whether this item has one or more relations.
|
java.lang.String |
getId()
Gets the id for this record, for example 'DLESE-000-000-000-001'.
|
java.lang.String |
getIdEncoded()
Gets the id for this record as encoded for unique searching and inexing.
|
java.util.List |
getIdsOfRecordsWithAssignedRelationships()
Gets a List of all IDs for records that this item assignes relationships for by ID or URL.
|
java.lang.String |
getIndexedContent()
Gets the full text of the content that was indexed.
|
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'.
|
boolean |
getIsMyCollectionDisabled()
Determines whether my collection is 'disabled'.
|
boolean |
getIsMyCollectionEnabled()
Determines whether my collection is 'enabled'.
|
java.lang.String |
getMetadataPrefix()
Gets the metadata previx (format) of the file associated with this reader, for example 'dlese_ims' or
'adn'.
|
MetadataVocab |
getMetadataVocab()
Gets the metadataVocab manager, or null if one is not available
|
java.lang.String |
getMetadataVocabAudience()
Gets the metadataVocabAudience attribute of the XMLDocReader object
|
java.lang.String |
getMetadataVocabLanguage()
Gets the metadataVocabLanguage attribute of the XMLDocReader object
|
protected org.apache.lucene.document.Document |
getMultiDoc()
Gets the multiDoc lucene Document for this item, or the single doc, if none available.
|
DleseCollectionDocReader |
getMyCollectionDoc()
Gets the collection doc for the collection in which this record is a part.
|
java.lang.String |
getMyCollectionsRecordId()
Gets the ID of collection record in which this item belongs.
|
java.lang.String |
getNativeFormat()
Gets the nativeFormat of the file associated with this reader, for example 'dlese_ims' or 'adn'.
|
java.lang.String |
getNsdlDublinCoreXml()
Gets the content in NSDL Dublin Core XML format, or empty String if not available.
|
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 |
getOaiDatestamp()
Gets the oaiDatestamp in UTC format for the given record.
|
java.lang.String |
getOaiDublinCoreXml()
Gets the content in OAI Dublin Core XML format, or empty String if not available.
|
java.lang.String |
getOaiLastModifiedString()
Gets a String representataion of the oai datestamp in readable format.
|
java.util.List |
getOaiSets()
Gets the OAI sets associated with this record as an ArrayList of Strings, for example 'dcc' or null.
|
java.lang.String |
getReaderType()
Gets the String 'XmlDocReader,' which is the key that describes this reader type.
|
java.lang.String[] |
getRelatedIdsOfType(java.lang.String relationType)
Gets the record IDs for the documents with the given relationship to this item, for example
'isAnnotatedBy'.
|
java.util.Map |
getRelatedRecordsMap()
Gets a Map of records that are related to this item, keyed by relationship type, for example
'isAnnotatedBy'.
|
java.lang.String[] |
getRelationshipTypes()
Gets the types of relationships that were indexed for this item, for example 'isAnnotatedBy'.
|
java.lang.String |
getRequestedXml()
Same as
getRequestedXmlFormat() except returns the non-localized XML if no format was specified. |
java.lang.String |
getRequestedXmlFormat()
Gets XML in the format that was previously specified using the
setRequestedXmlFormat(String)
method, or the localized native format if none was specified. |
java.lang.String |
getSet()
Gets the primary set (collection) associated with this item, for example dcc.
|
java.lang.String[] |
getSets()
Gets the sets (collections) associated with this record as an array of Strings, for example dcc, which is
not the same as the OAI sets.
|
java.lang.String |
getSetString()
Gets the collections associated with this record as a single String.
|
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.
|
protected java.lang.String |
getUiLabelFromVocabId(java.lang.String fieldId,
java.lang.String valueId,
java.lang.String metadataFormat)
Gets the UI label corresponding to the given vocab value IDs and field ID.
|
protected java.lang.String |
getUiLabelFromVocabName(java.lang.String fieldName,
java.lang.String vocabName,
java.lang.String metadataFormat)
Gets the UI label corresponding to the given vocab value name from the XML and field name.
|
protected java.util.Collection |
getUiLabelsFromVocabIds(java.lang.String fieldId,
java.lang.String[] valueIds,
java.lang.String metadataFormat)
Gets the UI labels corresponding to the given vocab value IDs and field ID.
|
java.lang.String |
getUrl()
Gets the url for the item.
|
java.lang.String |
getValidationReport()
Gets the validationReport for this document, or null if no validationReport was found.
|
protected java.lang.String |
getValueId(java.lang.String fieldName,
java.lang.String vocabName,
java.lang.String metadataFormat)
Gets the value ID from the field name and value name, for example 'key', 'dcc' will return '09'.
|
java.util.ArrayList |
getVideoAnnosInProgress()
Gets a list of
DleseAnnoDocReader s containing each of the in-progress type 'video' annotations
for this resource. |
org.w3c.dom.Document |
getW3CXmlDoc()
Gets a org.w3c.dom.Document for this record.
|
java.lang.String |
getWhatsNewDate()
Gets the Whats New date as a String.
|
java.util.Date |
getWhatsNewDateDate()
Gets the Whats New date as a Date.
|
java.lang.String |
getWhatsNewType()
Gets the Whats New type, which is one of 'itemnew,' 'itemannocomplete,' 'itemannoinprogress,'
'annocomplete,' 'annoinprogress,' 'drcannocomplete,' 'drcannoinprogress,' 'collection'.
|
java.lang.String |
getXml()
Gets the full XML for this record in it's native format.
|
org.dom4j.Document |
getXmlDoc()
Gets a dom4j XML Document for this record.
|
java.lang.String |
getXmlFormat(java.lang.String format,
boolean filter)
Gets XML in the given format.
|
java.lang.String |
getXmlLocalized()
Gets the native format in a localized form if available, otherwise returns the native format stripped of
XML and DTD declarations.
|
java.lang.String |
getXmlStripped()
Gets the full XML for this record in it's native format, with no XML or DTD declaration.
|
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'.
|
void |
init()
Initialized a new XMLDocReader at search time.
|
boolean |
isValid()
Determines whether the XML for this record is valid.
|
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.
|
void |
setMetadataVocabAudience(java.lang.String audience)
Sets the metadataVocabAudience attribute of the XMLDocReader object
|
void |
setMetadataVocabLanguage(java.lang.String language)
Sets the metadataVocabLanguage attribute of the XMLDocReader object
|
void |
setRequestedXmlFormat(java.lang.String format)
Sets the XML format that will be returned by the
getRequestedXmlFormat() method. |
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
protected MetadataVocab metadataVocab
protected RecordDataService recordDataService
protected RepositoryManager repositoryManager
public XMLDocReader()
public XMLDocReader(org.apache.lucene.document.Document doc)
Document
created by a FileIndexingServiceWriter
.doc
- A Lucene Document
created by a ItemFileIndexingWriter
.public void init()
public java.lang.String getReaderType()
getReaderType
in class DocReader
public java.lang.String getIndexedContent()
public java.lang.String getTitle()
public java.lang.String getDescription()
public java.lang.String getUrl()
public java.lang.String getId()
public java.lang.String getIdEncoded()
public java.lang.String getMetadataPrefix()
public java.lang.String getNativeFormat()
getMetadataPrefix()
.public java.lang.String getWhatsNewType()
public java.lang.String getWhatsNewDate()
ItemDocReader.getMultiWhatsNewDate()
.public java.util.Date getWhatsNewDateDate()
ItemDocReader.getMultiWhatsNewDateDate()
.public java.lang.String getSetString()
public java.lang.String[] getSets()
public java.util.List getOaiSets()
public java.lang.String getSet()
public java.lang.String getCollection()
public java.lang.String[] getCollections()
public java.lang.String getCollectionKey()
public java.lang.String[] getCollectionKeys()
public java.lang.String getCollectionLabel()
#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"/>
${docReader.collectionLabel}
public DleseCollectionDocReader getMyCollectionDoc()
public boolean getIsMyCollectionEnabled()
public boolean getIsMyCollectionDisabled()
public java.lang.String getMyCollectionsRecordId()
public final java.lang.String getXml()
public final org.dom4j.Document getXmlDoc()
public org.w3c.dom.Document getW3CXmlDoc()
public final java.lang.String getXmlStripped()
public final java.lang.String getXmlLocalized()
public java.lang.String getXmlFormat(java.lang.String format, boolean filter)
XMLConversionService
to perform the
transformation from the native format to the requested format. If filter
is set to true then
the output will have the XML declaration stripped out and the DTD declaration will be commented out, in
the case of DLESE IMS. Use filter=true
to get XML suitable for insertion into an OAI
container. Use filter=true
to get the full XML including XML and DTD declaration, if
present. Characters in the String returned are encoded as UTF-8.format
- The format desired.filter
- Indicates whether to filter out the XML and DTD declaration.public final java.lang.String getRequestedXmlFormat()
setRequestedXmlFormat(String)
method, or the localized native format if none was specified. The resulting String contains XML in the
requested format, or an empty String if unable to process. Uses an XMLConversionService
to perform the transformation from the native format to the
requested format. XML and DTD declarations do not appear the output.setRequestedXmlFormat(String)
public final java.lang.String getRequestedXml()
getRequestedXmlFormat()
except returns the non-localized XML if no format was specified.
XML and DTD declarations do not appear the output.setRequestedXmlFormat(String)
,
getRequestedXmlFormat()
public void setRequestedXmlFormat(java.lang.String format)
getRequestedXmlFormat()
method.format
- The new requestedXmlFormat valuegetRequestedXmlFormat()
public java.util.ArrayList getAvailableFormats()
XMLConversionService
.public boolean getCanDissiminateFormat()
setRequestedXmlFormat(String)
, as available through XMLConversionService
.setRequestedXmlFormat(String)
,
getXmlFormat(java.lang.String, boolean)
,
getRequestedXmlFormat()
,
getRequestedXml()
public java.lang.String getOaiDublinCoreXml()
public java.lang.String getNsdlDublinCoreXml()
public java.lang.String getOaiDatestamp()
public java.lang.String getOaiLastModifiedString()
public java.lang.String getValidationReport()
isValid()
public java.lang.String getDocsource()
getDocsource
in class FileIndexingServiceDocReader
public boolean isValid()
getValidationReport()
protected java.lang.String getFieldId(java.lang.String fieldString, java.lang.String metadataFormat)
fieldString
- A vocab field, for example 'gradeRange'metadataFormat
- The metadata format, for example 'adn'protected java.lang.String getValueId(java.lang.String fieldName, java.lang.String vocabName, java.lang.String metadataFormat)
fieldName
- The vocab field ID, for example 'key' or 'gradeRange'.vocabName
- The vocab value name, for example 'dcc' or 'DLESE:High school'.metadataFormat
- The metadata format, for example 'adn'public MetadataVocab getMetadataVocab()
public java.lang.String getMetadataVocabLanguage()
public void setMetadataVocabLanguage(java.lang.String language)
language
- The new metadataVocabLanguage valuepublic java.lang.String getMetadataVocabAudience()
public void setMetadataVocabAudience(java.lang.String audience)
audience
- The new metadataVocabAudience valueprotected java.lang.String getUiLabelFromVocabId(java.lang.String fieldId, java.lang.String valueId, java.lang.String metadataFormat)
#setVocabInterface(String)
, otherwise the default will be used, which is
'dds.descr.en-us'. Note that if the vocab manager can not translate the given IDs then a comment string
<!-- MUI... will be returned.fieldId
- The vocab field ID, for example 'gr'.valueId
- The vocab value IDs, for example '07'.metadataFormat
- The metadata format, for example 'adn'protected java.lang.String getUiLabelFromVocabName(java.lang.String fieldName, java.lang.String vocabName, java.lang.String metadataFormat)
#setVocabInterface(String)
, otherwise the default will be
used, which is 'dds.descr.en-us'. Note that if the vocab manager can not translate the given name then a
comment string <!-- MUI... will be returned.fieldName
- The vocab field ID, for example 'key' or 'gradeRange'.vocabName
- The vocab value name, for example 'dcc' or 'DLESE:High school'.metadataFormat
- The metadata format, for example 'adn'protected java.util.Collection getUiLabelsFromVocabIds(java.lang.String fieldId, java.lang.String[] valueIds, java.lang.String metadataFormat)
#setVocabInterface(String)
, otherwise the default will be used,
which is 'dds.descr.en-us'. Note that if the vocab manager can not translate the given IDs then the
valueIds will be returned unchanged.fieldId
- The vocab field ID, for example 'gr'.valueIds
- The vocab value IDs, for example '07', '04', '05'.metadataFormat
- The metadata format, for example 'adn'protected org.apache.lucene.document.Document getMultiDoc()
public boolean getHasAssignedRelations()
public java.lang.String[] getAssignedRelationshipByIdTypes()
public java.lang.String[] getAssignedRelationshipByUrlTypes()
public java.lang.String[] getAssignedRelatedIdsOfType(java.lang.String relationType)
relationType
- The type of relationship assigned, for example 'isAnnotatedBy'public java.lang.String[] getAssignedRelatedUrlsOfType(java.lang.String relationType)
relationType
- The type of relationship assigned, for example 'isAnnotatedBy'public java.util.Map getAssignedByIdRelatedRecordsMap()
public java.util.Map getAssignedByUrlRelatedRecordsMap()
public java.util.Map getAssignedRelationshipsForItemsMap()
public java.util.List getIdsOfRecordsWithAssignedRelationships()
public boolean getHasRelations()
public java.lang.String[] getRelationshipTypes()
public java.lang.String[] getRelatedIdsOfType(java.lang.String relationType)
relationType
- The type of relationship, for example 'isAnnotatedBy'public java.util.Map getRelatedRecordsMap()
public boolean hasAnnotations()
public java.lang.String[] getAllIds()
public java.lang.String[] getAssociatedIds()
public ResultDocList getAnnotationResultDocs()
public boolean hasCompletedAnno()
public java.lang.String getHasCompletedAnno()
public java.lang.String getNumCompletedAnnos()
public java.lang.String getNumInProgressAnnos()
public java.lang.String getNumTextAnnosInProgress()
public java.lang.String getNumAudioAnnosInProgress()
public java.lang.String getNumGraphicalAnnosInProgress()
public java.lang.String getNumVideoAnnosInProgress()
public boolean hasCompletedAnnoOfType(java.lang.String type)
type
- The annotation typepublic java.util.ArrayList getCompletedAnnosOfType(java.lang.String type)
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()
public boolean hasInProgressAnno()
public boolean hasInProgressAnnoOfFormat(java.lang.String format)
format
- Annotation formatpublic java.util.ArrayList getInProgressAnnosOfFormat(java.lang.String format)
format
- Annotation formatDleseAnnoDocReader
spublic java.util.ArrayList getTextAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'text' annotations for
this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getAudioAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'audio' annotations
for this resource.DleseAnnoDocReader
spublic java.util.ArrayList getGraphicalAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'graphical'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getVideoAnnosInProgress()
DleseAnnoDocReader
s containing each of the in-progress type 'video' annotations
for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAnnos()
DleseAnnoDocReader
s containing each of the completed annotations, regardless of
type, for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedReviews()
DleseAnnoDocReader
s containing each of the completed type 'review' annotations for
this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedTeachingTips()
DleseAnnoDocReader
s containing each of the completed type 'teaching tip'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedEditorSummaries()
DleseAnnoDocReader
s containing each of the completed type 'editors summary'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedChallengingSituations()
DleseAnnoDocReader
s containing each of the completed type 'challenging situation'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAverageScores()
DleseAnnoDocReader
s containing each of the completed type 'average scores'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAdvice()
DleseAnnoDocReader
s containing each of the completed type 'advice' annotations for
this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedAnnotation()
DleseAnnoDocReader
s containing each of the completed type 'annotation' annotations
for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedBias()
DleseAnnoDocReader
s containing each of the completed type 'bias' annotations for
this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedChange()
DleseAnnoDocReader
s containing each of the completed type 'change' annotations for
this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedComment()
DleseAnnoDocReader
s containing each of the completed type 'comment' annotations
for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedEducationalStandard()
DleseAnnoDocReader
s containing each of the completed type 'educational standard'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedExample()
DleseAnnoDocReader
s containing each of the completed type 'example' annotations
for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedExplanation()
DleseAnnoDocReader
s containing each of the completed type 'explanation'
annotations for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedQuestion()
DleseAnnoDocReader
s containing each of the completed type 'question' annotations
for this resource.DleseAnnoDocReader
s or empty listpublic java.util.ArrayList getCompletedSeeAlso()
DleseAnnoDocReader
s containing each of the completed type 'see also' annotations
for this resource.DleseAnnoDocReader
s or empty listpublic java.lang.String[] getAnnoCollectionKeys()
public java.lang.String[] getCompletedAnnoCollectionKeys()
public java.lang.String[] getAnnoTypes()
public java.util.ArrayList getAnnoPathways()
public java.util.ArrayList getAnnoStatus()
public java.util.ArrayList getAnnoFormats()
public java.lang.String[] getAnnoRatings()
public java.lang.String getAverageAnnoRating()
public float getAverageAnnoRatingFloat()
public java.lang.String getNumAnnoRatings()
public int getNumAnnoRatingsInt()
protected 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.