ItemFacade() ItemFacade is the class that is exposed to developer
It contains some of the useful methods specified in
org.osid.assessment.Item and it implements
org.sakaiproject.tool.assessment.ifc.
ItemFacade is the class that is exposed to developer
It contains some of the useful methods specified in
org.osid.assessment.Item and it implements
org.sakaiproject.tool.assessment.ifc.
When new methods is added to osid api, this code is still workable.
If signature in any of the osid methods that we mirrored changes,
we only need to modify those particular methods.
- daisyf
This is a very important constructor. Please make sure that you have
set all the properties (declared above as private) of ItemFacade using
the "data" supplied. "data" is a org.osid.assessment.Item properties
and I use it to store info about an item.
Parameters: data -
Method Detail
addItemAttachmentMetaData
public void addItemAttachmentMetaData(String entry)(Code)
Add item text (question text) to ItemFacade (question). For multiple
choice, multiple correct, survey, matching & fill in the blank, you can
specify a set of acceptable answers. Usually, the purpose for this is
to facilitate auto-grading.
Parameters: text - Parameters: answerSet -
This method return the answerKey for a matching question
e.g. A:2, B:3, C:1, D:4 (where A, B & C is the answer label and 1,2 &3
are the itemText sequence
If this is a true-false question return true if it is true, else false.
If it is not a true-false question return false.
true if this is a true true-false question
Utility method.
In the case of an ordinary question, this will obtain the a set of text with
one element and return it; in FIB or FIN return multiple elements separated by
underscores.
text of question
Utility method.
Obeys the semantics and rules of the getText() but removes
HTML tags.
See Also: getText() text of question, removesHTML tags. throws: DataFacadeException -
Utility method.
Obeys the semantics and rules of the getText() but removes
HTML tags. The differency of getTextHtmlStripped() is this
API doesn't replace HTMLtags by white space.
See Also: getText() text of question, removesHTML tags. throws: DataFacadeException -
Set TypeId for ItemType. This property is used to indicate question type.
e.g. 1 = Multiple Choice, 2 = Multiple Correct. Please check out
ddl/02_TypeData.sql and table "type".
Parameters: typeId -