Java Doc for ItemFacade.java in  » ERP-CRM-Financial » sakai » org » sakaiproject » tool » assessment » facade » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » ERP CRM Financial » sakai » org.sakaiproject.tool.assessment.facade 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.sakaiproject.tool.assessment.facade.ItemFacade

ItemFacade
public class ItemFacade implements Serializable,ItemDataIfc,Comparable(Code)
ItemFacade implements ItemDataIfc that encapsulates our out of bound (OOB) agreement.


Field Summary
final public static  IntegerACTIVE_STATUS
    
final public static  IntegerINACTIVE_STATUS
    

Constructor Summary
public  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.
public  ItemFacade(ItemDataIfc data)
     This is a very important constructor.

Method Summary
public  voidaddItemAttachmentMetaData(String entry)
    
public  voidaddItemFeedback(String feedbackTypeId, String text)
     Add feedback of a specified feedback type (e.g.
public  voidaddItemMetaData(String label, String entry)
    
public  voidaddItemText(String text, Set answerSet)
     Add item text (question text) to ItemFacade (question).
public  intcompareTo(Object o)
    
public  StringgetAnswerKey()
     This method return the answerKey for a matching question e.g.
public  StringgetCorrectItemFeedback()
    
public  StringgetCreatedBy()
     Get createdBy for ItemFacade.
public  DategetCreatedDate()
     Get the creation date of ItemFacade.
public  ItemDataIfcgetData()
     Get the data for this ItemFacade.
public  StringgetDescription()
    
public  IntegergetDuration()
    
public  StringgetGeneralItemFeedback()
    
public  StringgetGrade()
    
public  BooleangetHasRationale()
    
public  StringgetHint()
    
 org.osid.shared.IdgetId()
     Get the Id for this ItemFacade.
public  StringgetInCorrectItemFeedback()
    
public  StringgetInstruction()
    
public  BooleangetIsTrue()
     If this is a true-false question return true if it is true, else false.
public  ListgetItemAttachmentList()
    
public  StringgetItemAttachmentMetaData()
    
public  SetgetItemAttachmentSet()
    
public  StringgetItemFeedback(String feedbackTypeId)
     Get feedback based on feedback type (e.g.
public  HashMapgetItemFeedbackMap(Set itemFeedbackSet)
    
public  SetgetItemFeedbackSet()
    
public  LonggetItemId()
    
public  StringgetItemIdString()
    
public  StringgetItemMetaDataByLabel(String label)
    
public  HashMapgetItemMetaDataMap(Set itemMetaDataSet)
    
public  SetgetItemMetaDataSet()
    
public  ArrayListgetItemTextArray()
    
public  ArrayListgetItemTextArraySorted()
    
public  SetgetItemTextSet()
    
 TypegetItemType()
     Get the Type for this ItemFacade.
public  TypeFacadegetItemTypeFacade()
    
public  StringgetLastModifiedBy()
    
public  DategetLastModifiedDate()
    
public  FloatgetScore()
    
public  SectionDataIfcgetSection()
    
public  IntegergetSequence()
    
public  IntegergetStatus()
     Get status of ItemFacade.
public  StringgetText()
     Utility method.
public  StringgetTextHtmlStripped()
     Utility method.
public  StringgetTextHtmlStrippedAll()
     Utility method. Obeys the semantics and rules of the getText() but removes HTML tags.
public  IntegergetTriesAllowed()
    
public  TypeIfcgetType()
    
public  LonggetTypeId()
    
public  voidremoveFeedbackByType(String feedbackTypeId)
     Remove Feedback by feedback typeId (e.g.
public  voidremoveMetaDataByType(String label)
    
public  voidsetCorrectItemFeedback(String text)
    
public  voidsetCreatedBy(String createdBy)
     Set createdBy for ItemFacade.
public  voidsetCreatedDate(Date createdDate)
    
public  voidsetData(ItemDataIfc data)
    
public  voidsetDescription(String description)
    
public  voidsetDuration(Integer duration)
    
public  voidsetGeneralItemFeedback(String text)
    
public  voidsetGrade(String grade)
    
public  voidsetHasRationale(Boolean hasRationale)
    
public  voidsetHint(String hint)
    
public  voidsetInCorrectItemFeedback(String text)
    
public  voidsetInstruction(String instruction)
     Set instruction for ItemFacade e.g.
public  voidsetItemAttachmentSet(Set itemAttachmentSet)
    
public  voidsetItemFeedbackSet(Set itemFeedbackSet)
    
public  voidsetItemId(Long itemId)
    
public  voidsetItemIdString(String itemIdString)
    
public  voidsetItemMetaDataSet(Set itemMetaDataSet)
    
public  voidsetItemTextSet(Set itemTextSet)
    
public  voidsetLastModifiedBy(String lastModifiedBy)
    
public  voidsetLastModifiedDate(Date lastModifiedDate)
    
public  voidsetScore(Float score)
    
public  voidsetSection(SectionDataIfc section)
    
public  voidsetSequence(Integer sequence)
    
public  voidsetStatus(Integer status)
     Set status for ItemFacade.
public  voidsetTriesAllowed(Integer triesAllowed)
    
public  voidsetTypeId(Long typeId)
     Set TypeId for ItemType.
public  voidupdateData(ItemDataIfc data)
    

Field Detail
ACTIVE_STATUS
final public static Integer ACTIVE_STATUS(Code)



INACTIVE_STATUS
final public static Integer INACTIVE_STATUS(Code)




Constructor Detail
ItemFacade
public ItemFacade()(Code)
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



ItemFacade
public ItemFacade(ItemDataIfc data)(Code)
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)



addItemFeedback
public void addItemFeedback(String feedbackTypeId, String text)(Code)
Add feedback of a specified feedback type (e.g. CORRECT, INCORRECT) to ItemFacade
Parameters:
  feedbackTypeId -
Parameters:
  text -



addItemMetaData
public void addItemMetaData(String label, String entry)(Code)
Add a Meta Data to ItemFacade
Parameters:
  label -
Parameters:
  entry -



addItemText
public void addItemText(String text, Set answerSet)(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 -



compareTo
public int compareTo(Object o)(Code)



getAnswerKey
public String getAnswerKey()(Code)
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



getCorrectItemFeedback
public String getCorrectItemFeedback()(Code)
Get Correct Feedback



getCreatedBy
public String getCreatedBy() throws DataFacadeException(Code)
Get createdBy for ItemFacade. This represents the agentId of the person who created the record
throws:
  DataFacadeException -



getCreatedDate
public Date getCreatedDate() throws DataFacadeException(Code)
Get the creation date of ItemFacade.
throws:
  DataFacadeException -



getData
public ItemDataIfc getData()(Code)
Get the data for this ItemFacade. ItemDataIfc



getDescription
public String getDescription() throws DataFacadeException(Code)



getDuration
public Integer getDuration() throws DataFacadeException(Code)



getGeneralItemFeedback
public String getGeneralItemFeedback()(Code)
Get General Feedback



getGrade
public String getGrade() throws DataFacadeException(Code)
Get Grade for ItemFacade
throws:
  DataFacadeException -



getHasRationale
public Boolean getHasRationale() throws DataFacadeException(Code)
Check if item (question) require rationale in answer
throws:
  DataFacadeException -



getHint
public String getHint() throws DataFacadeException(Code)
Get Hint for ItemFacade
throws:
  DataFacadeException -



getId
org.osid.shared.Id getId()(Code)
Get the Id for this ItemFacade. org.osid.shared.Id



getInCorrectItemFeedback
public String getInCorrectItemFeedback()(Code)
Get Incorrect Feedback



getInstruction
public String getInstruction() throws DataFacadeException(Code)



getIsTrue
public Boolean getIsTrue() throws DataFacadeException(Code)
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



getItemAttachmentList
public List getItemAttachmentList()(Code)



getItemAttachmentMetaData
public String getItemAttachmentMetaData()(Code)



getItemAttachmentSet
public Set getItemAttachmentSet()(Code)



getItemFeedback
public String getItemFeedback(String feedbackTypeId)(Code)
Get feedback based on feedback type (e.g. CORRECT, INCORRECT)
Parameters:
  feedbackTypeId -



getItemFeedbackMap
public HashMap getItemFeedbackMap(Set itemFeedbackSet)(Code)
Get a HashMap (Long feedbackTypeId, ItemFeedback itemFeedback) of item feedback for ItemFacade
Parameters:
  itemFeedbackSet -



getItemFeedbackSet
public Set getItemFeedbackSet()(Code)
Set the item feedback set for ItemFacade using the "data"



getItemId
public Long getItemId() throws DataFacadeException(Code)



getItemIdString
public String getItemIdString() throws DataFacadeException(Code)



getItemMetaDataByLabel
public String getItemMetaDataByLabel(String label)(Code)
Get meta data by label
Parameters:
  label -



getItemMetaDataMap
public HashMap getItemMetaDataMap(Set itemMetaDataSet)(Code)
Get item metadata in HashMap (String Label, ItemMetaData itemMetaData) of ItemFacade
Parameters:
  itemMetaDataSet -



getItemMetaDataSet
public Set getItemMetaDataSet() throws DataFacadeException(Code)



getItemTextArray
public ArrayList getItemTextArray()(Code)



getItemTextArraySorted
public ArrayList getItemTextArraySorted()(Code)



getItemTextSet
public Set getItemTextSet() throws DataFacadeException(Code)
Get item text set (question text set) from ItemFacade.data
throws:
  DataFacadeException -



getItemType
Type getItemType()(Code)
Get the Type for this ItemFacade. org.osid.shared.Type



getItemTypeFacade
public TypeFacade getItemTypeFacade()(Code)



getLastModifiedBy
public String getLastModifiedBy() throws DataFacadeException(Code)
Get the agentId of the person who last modified ItemFacade
throws:
  DataFacadeException -



getLastModifiedDate
public Date getLastModifiedDate() throws DataFacadeException(Code)
Get the date when ItemFacade where last modified By
throws:
  DataFacadeException -



getScore
public Float getScore() throws DataFacadeException(Code)
Get Score for ItemFacade
throws:
  DataFacadeException -



getSection
public SectionDataIfc getSection() throws DataFacadeException(Code)



getSequence
public Integer getSequence() throws DataFacadeException(Code)



getStatus
public Integer getStatus() throws DataFacadeException(Code)
Get status of ItemFacade. 1 = active, 0 = inactive
throws:
  DataFacadeException -



getText
public String getText() throws DataFacadeException(Code)
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



getTextHtmlStripped
public String getTextHtmlStripped() throws DataFacadeException(Code)
Utility method. Obeys the semantics and rules of the getText() but removes HTML tags.
See Also:    getText() text of question, removesHTML tags.
throws:
  DataFacadeException -



getTextHtmlStrippedAll
public String getTextHtmlStrippedAll() throws DataFacadeException(Code)
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 -



getTriesAllowed
public Integer getTriesAllowed() throws DataFacadeException(Code)



getType
public TypeIfc getType()(Code)



getTypeId
public Long getTypeId() throws DataFacadeException(Code)



removeFeedbackByType
public void removeFeedbackByType(String feedbackTypeId)(Code)
Remove Feedback by feedback typeId (e.g. CORRECT, INCORRECT)
Parameters:
  feedbackTypeId -



removeMetaDataByType
public void removeMetaDataByType(String label)(Code)



setCorrectItemFeedback
public void setCorrectItemFeedback(String text)(Code)
Set Correct Feedback
Parameters:
  text -



setCreatedBy
public void setCreatedBy(String createdBy)(Code)
Set createdBy for ItemFacade. This represents the agentId of the person who created the record
Parameters:
  createdBy -



setCreatedDate
public void setCreatedDate(Date createdDate)(Code)
Set the creation date of ItemFacade
Parameters:
  createdDate -



setData
public void setData(ItemDataIfc data)(Code)
Set data for ItemFacade
Parameters:
  data -



setDescription
public void setDescription(String description)(Code)
Set description for ItemFacade
Parameters:
  description -



setDuration
public void setDuration(Integer duration)(Code)
Set duration for ItemFacade
Parameters:
  duration -



setGeneralItemFeedback
public void setGeneralItemFeedback(String text)(Code)
Set General Feedback
Parameters:
  text -



setGrade
public void setGrade(String grade)(Code)
Set Grade for ItemFacade
Parameters:
  grade -



setHasRationale
public void setHasRationale(Boolean hasRationale)(Code)
Set preference if rationale should be collected in answer
Parameters:
  hasRationale -



setHint
public void setHint(String hint)(Code)
Set Hint for ItemFacade
Parameters:
  hint -



setInCorrectItemFeedback
public void setInCorrectItemFeedback(String text)(Code)
Set InCorrect Feedback
Parameters:
  text -



setInstruction
public void setInstruction(String instruction)(Code)
Set instruction for ItemFacade e.g. "Match the following sentences", "In the score between 1-5, specify your preference"
Parameters:
  instruction -



setItemAttachmentSet
public void setItemAttachmentSet(Set itemAttachmentSet)(Code)



setItemFeedbackSet
public void setItemFeedbackSet(Set itemFeedbackSet)(Code)
Set the item feedback set for ItemFacade and ItemFacade.data
Parameters:
  itemFeedbackSet -



setItemId
public void setItemId(Long itemId)(Code)
Set itemId for ItemFacade
Parameters:
  itemId -



setItemIdString
public void setItemIdString(String itemIdString)(Code)
Set itemId for ItemFacade
Parameters:
  itemId -



setItemMetaDataSet
public void setItemMetaDataSet(Set itemMetaDataSet)(Code)
Set item metadata set in ItemFacade and ItemFacade.data
Parameters:
  itemMetaDataSet -



setItemTextSet
public void setItemTextSet(Set itemTextSet)(Code)
Set item text (question text) in ItemFacade.data
Parameters:
  itemTextSet -



setLastModifiedBy
public void setLastModifiedBy(String lastModifiedBy)(Code)
set the agentId of the person who last modified itemFacade
Parameters:
  lastModifiedBy -



setLastModifiedDate
public void setLastModifiedDate(Date lastModifiedDate)(Code)
Set the last modified date
Parameters:
  lastModifiedBy -



setScore
public void setScore(Float score)(Code)
Set Score for ItemFacade
Parameters:
  score -



setSection
public void setSection(SectionDataIfc section)(Code)



setSequence
public void setSequence(Integer sequence)(Code)



setStatus
public void setStatus(Integer status)(Code)
Set status for ItemFacade. 1 = active, 0 = inactive
Parameters:
  status -



setTriesAllowed
public void setTriesAllowed(Integer triesAllowed)(Code)
Set duration for ItemFacade
Parameters:
  duration -



setTypeId
public void setTypeId(Long typeId)(Code)
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 -



updateData
public void updateData(ItemDataIfc data)(Code)
Call setDate() to update data in ItemFacade
Parameters:
  data -



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.