|
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.serviceclients.remotesearch.reader.ADNItemDocReader
public class ADNItemDocReader
Description of the Class
$Id: ADNItemDocReader.java,v 1.9 2010/07/14 00:19:27 jweather Exp $
Field Summary | |
---|---|
protected ResultDocList |
allItemResultDocs
Description of the Field |
protected boolean |
allItemsInitialized
Description of the Field |
protected boolean |
annotationDocReadersInitialized
Description of the Field |
protected ResultDocList |
annotationResultDocs
Description of the Field |
protected ResultDocList |
associatedItemResultDocs
Description of the Field |
protected boolean |
associatedItemsInitialized
Description of the Field |
protected String |
collection
Description of the Field |
protected ArrayList |
completedAnnos
Description of the Field |
protected HashMap |
completedAnnosByType
Description of the Field |
protected static boolean |
debug
Description of the Field |
protected String |
DEFAULT
Description of the Field |
protected ResultDocList |
displayableAssociatedItemResultDocs
Description of the Field |
protected boolean |
displayableAssociatedItemsInitialized
Description of the Field |
protected Document |
doc
Description of the Field |
protected String[] |
EMPTY_ARRAY
Description of the Field |
protected ArrayList |
EMPTY_LIST
Description of the Field |
protected String |
id
Description of the Field |
protected HashMap |
inProgressAnnosByStatus
Description of the Field |
protected ArrayList |
missingAssociatedItemIds
Description of the Field |
protected Document |
multiDoc
Description of the Field |
protected String |
multiRecordStatus
Description of the Field |
protected int |
numAudioInProgress
Description of the Field |
protected int |
numCompletedAnnos
Description of the Field |
protected int |
numGraphicalInProgress
Description of the Field |
protected int |
numInProgressAnnos
Description of the Field |
protected int |
numTextInProgress
Description of the Field |
protected String |
readerType
Description of the Field |
protected MetadataVocab |
vocab
Description of the Field |
Constructor Summary | |
---|---|
ADNItemDocReader(String id,
GetRecordResponse response)
Constructor for the ADNItemDocReader object |
|
ADNItemDocReader(String id,
GetRecordResponse response,
MetadataVocab vocab)
parse a GetRecordResponse (a response from a GetRecord request), to create an ADNItemDocReader. |
|
ADNItemDocReader(String id,
String collection,
Document itemRecordDoc,
MetadataVocab vocab)
ADNItemDocReader constructor requiring an itemRecordDoc |
Method Summary | |
---|---|
ResultDocList |
getAnnotationResultDocs()
Gets the ResultDocs for all annotations that refer to this resource. |
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. |
ArrayList |
getAudioAnnosInProgress()
Gets the audioAnnosInProgress attribute of the ItemDocReader object |
String |
getCollection()
Gets the collection attribute of the ADNItemDocReader object |
String |
getCollectionKey()
Gets the collection key associated with this record, for example 01. |
String[] |
getCollectionKeys()
Gets the collection keys associated with this record, for example {01,02}. |
ArrayList |
getCompletedAdvice()
Gets the completedAdvice attribute of the ItemDocReader object |
ArrayList |
getCompletedAnnos()
Gets the completedAnnos attribute of the ItemDocReader object |
ArrayList |
getCompletedAnnosOfType(String type)
Gets a list of all completed annotataions for this item of the given type. |
ArrayList |
getCompletedAnnotation()
Gets the completedAnnotation attribute of the ItemDocReader object |
ArrayList |
getCompletedAverageScores()
Gets the completedAverageScores attribute of the ItemDocReader object |
ArrayList |
getCompletedBias()
Gets the completedBias attribute of the ItemDocReader object |
ArrayList |
getCompletedChallengingSituations()
Gets the completedChallengingSituations attribute of the ItemDocReader object |
ArrayList |
getCompletedChange()
Gets the completedChange attribute of the ItemDocReader object |
ArrayList |
getCompletedComment()
Gets the completedComment attribute of the ItemDocReader object |
ArrayList |
getCompletedEditorSummaries()
Gets the completedEditorSummaries attribute of the ItemDocReader object |
ArrayList |
getCompletedEducationalStandard()
Gets the completedEducationalStandard attribute of the ItemDocReader object |
ArrayList |
getCompletedExample()
Gets the completedExample attribute of the ItemDocReader object |
ArrayList |
getCompletedExplanation()
Gets the completedExplanation attribute of the ItemDocReader object |
ArrayList |
getCompletedQuestion()
Gets the completedQuestion attribute of the ItemDocReader object |
ArrayList |
getCompletedReviews()
Gets the completedReviews attribute of the ItemDocReader object |
ArrayList |
getCompletedSeeAlso()
Gets the completedSeeAlso attribute of the ItemDocReader object |
ArrayList |
getCompletedTeachingTips()
Gets the completedTeachingTips attribute of the ItemDocReader object |
String[] |
getContentStandards()
Gets the contentStandards attribute of the ADNItemDocReader object |
String |
getDescription()
Gets the description attribute of the ADNItemDocReader object |
protected Element |
getElement(String xpath)
Gets a single Element satisfying given XPath. |
protected List |
getElements(String xpath)
get all Elements satisfying the given xpath |
protected String |
getElementText(String xpath)
return the Text of a Element satisfying the given XPath. |
protected String[] |
getFieldContent(String[] values,
String useVocabMapping)
Gets the vocab encoded keys for the given values as a String Array. |
protected String |
getFieldContent(String value,
String useVocabMapping)
Gets the encoded vocab key for the given content. |
String[] |
getGradeRanges()
Gets the gradeRanges for this item (as vocab keys) |
ArrayList |
getGraphicalAnnosInProgress()
Gets the graphicalAnnosInProgress attribute of the ItemDocReader object |
String |
getHasCompletedAnno()
Gets the hasCompletedAnno attribute of the ItemDocReader object |
String |
getHasInProgressAnno()
Determines whether the item has an annotation in progress. |
protected boolean |
getHasRelatedResource()
Returns true if the item has one or more related resource, false otherwise. |
String |
getId()
gets the ID of the item |
ArrayList |
getInProgressAnnosOfStatus(String status)
Gets all in-progress annotations for this item that have the given status. |
String |
getMetadataPrefix()
Gets the metadataPrefix attribute of the ADNItemDocReader object |
List |
getMirrorUrls()
|
protected String[] |
getMultiElementTexts(String xpath)
get the values of all elements matching an XPath |
String[] |
getMultiGradeRanges()
Gets the multiGradeRanges attribute of the ADNItemDocReader object |
String[] |
getMultiResourceTypes()
Gets the multiResourceTypes attribute of the ADNItemDocReader object |
String[] |
getMultiSubjects()
Gets the multiSubjects attribute of the ADNItemDocReader object |
String |
getNumAudioAnnosInProgress()
Gets the numAudioAnnosInProgress attribute of the ItemDocReader object |
String |
getNumCompletedAnnos()
Gets the numCompletedAnnos attribute of the ItemDocReader object |
String |
getNumGraphicalAnnosInProgress()
Gets the numGraphicalAnnosInProgress attribute of the ItemDocReader object |
String |
getNumInProgressAnnos()
Gets the numInProgressAnnos attribute of the ItemDocReader object |
String |
getNumTextAnnosInProgress()
Gets the numTextAnnosInProgress attribute of the ItemDocReader object |
String |
getReaderType()
Gets the String 'ItemDocReader,' which is the key that describes this reader type. |
String[] |
getResourceTypes()
Gets the resourceTypes attribute of the ADNItemDocReader object |
String[] |
getSubjects()
Gets the subjects attribute of the ADNItemDocReader object |
ArrayList |
getTextAnnosInProgress()
Gets the textAnnosInProgress attribute of the ItemDocReader object |
String |
getTitle()
Gets the title attribute of the ADNItemDocReader object |
String |
getUrl()
Gets the url attribute of the |
String |
getUrlTruncated()
Gets the URL for this resource, truncated if it is very long |
String |
getValueOf(String xpath)
Gets the valueOf attribute of the ADNItemDocReader object |
boolean |
hasCompletedAnno()
Determines whether this item has at least one completed annotation. |
boolean |
hasCompletedAnnoOfType(String type)
Determines whether this item has a completed annotataion of the given type. |
boolean |
hasDoc()
Description of the Method |
boolean |
hasInProgressAnno()
Determines whether the item has an annotation in progress. |
boolean |
hasInProgressAnnoOfStatus(String status)
Determines whether the item has an annotation in progress with the given status. |
protected void |
initAnnosByType()
Description of the Method |
static void |
prtln(String s)
Description of the Method |
static void |
prtlnArray(String[] s)
Description of the Method |
void |
setReaderType(String s)
Sets the readerType attribute of the ADNItemDocReader object |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected MetadataVocab vocab
protected static boolean debug
protected String id
protected String collection
protected String readerType
protected Document doc
protected String[] EMPTY_ARRAY
protected String DEFAULT
protected ArrayList EMPTY_LIST
protected ResultDocList associatedItemResultDocs
protected ResultDocList displayableAssociatedItemResultDocs
protected ResultDocList allItemResultDocs
protected ResultDocList annotationResultDocs
protected boolean associatedItemsInitialized
protected boolean displayableAssociatedItemsInitialized
protected boolean allItemsInitialized
protected boolean annotationDocReadersInitialized
protected ArrayList missingAssociatedItemIds
protected String multiRecordStatus
protected Document multiDoc
protected HashMap completedAnnosByType
protected ArrayList completedAnnos
protected HashMap inProgressAnnosByStatus
protected int numCompletedAnnos
protected int numInProgressAnnos
protected int numAudioInProgress
protected int numGraphicalInProgress
protected int numTextInProgress
Constructor Detail |
---|
public ADNItemDocReader(String id, String collection, Document itemRecordDoc, MetadataVocab vocab)
id
- Description of the Parametercollection
- Description of the ParameteritemRecordDoc
- Description of the Parametervocab
- Description of the Parameterpublic ADNItemDocReader(String id, GetRecordResponse response)
id
- Description of the Parameterresponse
- Description of the Parameterpublic ADNItemDocReader(String id, GetRecordResponse response, MetadataVocab vocab)
id
- Description of the Parameterresponse
- Description of the Parametervocab
- Description of the ParameterMethod Detail |
---|
public boolean hasDoc()
public String getReaderType()
public void setReaderType(String s)
s
- The new readerType valuepublic String getMetadataPrefix()
public String getId()
public String getUrl()
public String getUrlTruncated()
public String getTitle()
public String getDescription()
public String getCollection()
public String getCollectionKey()
public String[] getCollectionKeys()
public List getMirrorUrls()
public ArrayList getAssociatedCollectionKeys()
public String[] getGradeRanges()
public String[] getMultiGradeRanges()
public String[] getResourceTypes()
public String[] getMultiResourceTypes()
public String[] getSubjects()
public String[] getMultiSubjects()
public String[] getContentStandards()
protected boolean getHasRelatedResource()
protected String[] getFieldContent(String[] values, String useVocabMapping)
values
- The valuse to encode.useVocabMapping
- The mapping to use, for example "contentStandards".
protected String getFieldContent(String value, String useVocabMapping)
value
- The value to encode.useVocabMapping
- The vocab mapping to use, for example
"contentStandard".
protected List getElements(String xpath)
xpath
- an XPath
protected Element getElement(String xpath)
xpath
- an XPath
protected String getElementText(String xpath)
xpath
- an XPath\
protected String[] getMultiElementTexts(String xpath)
xpath
- Description of the Parameter
public String getValueOf(String xpath)
xpath
- Description of the Parameter
public static void prtlnArray(String[] s)
s
- Description of the Parameterpublic static void prtln(String s)
s
- Description of the Parameterpublic ResultDocList getAnnotationResultDocs()
public String[] getAssociatedIds()
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)
type
- The annotation type
public ArrayList getCompletedAnnosOfType(String type)
type
- The annotation type.
public String getHasInProgressAnno()
public boolean hasInProgressAnno()
public boolean hasInProgressAnnoOfStatus(String status)
status
- Annotation status.
public ArrayList getInProgressAnnosOfStatus(String status)
status
- Annotation status.
protected void initAnnosByType()
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.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |