org.sakaiproject.tool.assessment.qti.helper
Class MetaDataList

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.qti.helper.MetaDataList

public class MetaDataList
extends Object

Contract: use List of special "|" delimited "KEY|VALUE" Strings!

Author:
Ed Smiley esmiley@stanford.edu

Constructor Summary
MetaDataList(List metadataList)
          Contract: use List of special "|" delimited "KEY|VALUE" Strings!
 
Method Summary
 void addTo(AssessmentFacade assessment)
          Adds extraction-created list of "|" key value pairs to assessment metadata map, if there are any.
 void addTo(ItemDataIfc item)
          Adds extraction-created list of "|" key value pairs to item metadata map, if there are any.
 List getMetadataList()
           
 void setDefaults(AssessmentFacade assessment)
          Turns on editability for everything (ecept template info), since we don't know if this metadata is in the assessment or not, or may not want to follow it, even if it is.
 void setMetadataList(List metadataList)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MetaDataList

public MetaDataList(List metadataList)
Contract: use List of special "|" delimited "KEY|VALUE" Strings! Uses special "|" delimited "KEY|VALUE" strings

Parameters:
metadataList -
Method Detail

addTo

public void addTo(ItemDataIfc item)
Adds extraction-created list of "|" key value pairs to item metadata map, if there are any. Example:

< metadata type =" list " > TEXT_FORMAT| HTML </ metadata >
� < metadata type =" list " > ITEM_OBJECTIVE| </ metadata >
Becomes:
TEXT_FORMAT=>HTML etc.

Parameters:
item - the item

addTo

public void addTo(AssessmentFacade assessment)
Adds extraction-created list of "|" key value pairs to assessment metadata map, if there are any. Example:

< metadata type =" list " > FEEDBACK_SHOW_CORRECT_RESPONSE|True </ metadata >
� < metadata type =" list " > FEEDBACK_SHOW_STUDENT_SCORE|True </ metadata >
Becomes:
TEXT_FORMAT=>HTML etc.

Parameters:
assessment - the assessment

setDefaults

public void setDefaults(AssessmentFacade assessment)
Turns on editability for everything (ecept template info), since we don't know if this metadata is in the assessment or not, or may not want to follow it, even if it is. The importer of the assesment may also be different than the exporter, and may be on a different system or have different templates, or policies, even if using this softwware.

Parameters:
assessment -

getMetadataList

public List getMetadataList()

setMetadataList

public void setMetadataList(List metadataList)