Class Assessment
- java.lang.Object
-
- org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
-
- org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
-
- org.sakaiproject.tool.assessment.qti.asi.Assessment
-
- All Implemented Interfaces:
Serializable
public class Assessment extends ASIBaseClass
Copyright: Copyright (c) 2003-5
Organization: Sakai Project
- Version:
- $Id$
- Author:
- casong, Ed Smiley esmiley@stanford.edu
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAssessment()Creates a new Assessment object.Assessment(Document document)Creates a new Assessment object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddSectionRef(String sectionId)Add a section ref with section Id sectionId.StringgetBasePath()Base XPath for the assessment.StringgetFieldentry(String fieldlabel)Method for meta data.StringgetIdent()Assessment id (ident attribute)CollectiongetItems()Get a collection of items.ListgetSectionRefIds()ListgetSectionRefs()Get a collection of section refs.CollectiongetSections()Get a collection of sections.StringgetTitle()Assessment title.voidremoveSectionRef(String sectionId)Remove a section ref with section Id sectionId.voidremoveSectionRefs()Remove all section refs.voidsetBasePath(String basePath)Base XPath for the assessment.voidsetFieldentry(String fieldlabel, String setValue)Set field entry.voidsetFieldentry(String fieldlabel, String setValue, boolean noEscapeXML)Set field entry.voidsetIdent(String ident)Assessment id (ident attribute)voidsetTitle(String title)Assessment title.-
Methods inherited from class org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
createFieldentry, escapeXml, extractString, getAllSections, getIdString, getNumOfSections, removeSections, setIdString, wrappingMattext
-
Methods inherited from class org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
add, addAttribute, addElement, addJDOMElement, clear, createChildElement, getDocument, getValueOf, insertElement, isEmpty, removeElement, replace, selectNodes, selectSingleValue, stringValue, update, update
-
-
-
-
Constructor Detail
-
Assessment
protected Assessment()
Creates a new Assessment object.
-
Assessment
public Assessment(Document document)
Creates a new Assessment object.- Parameters:
document- the Document containing the assessment.
-
-
Method Detail
-
getFieldentry
public String getFieldentry(String fieldlabel)
Method for meta data.- Overrides:
getFieldentryin classASIBaseClass- Parameters:
fieldlabel- the fieldlabel- Returns:
- the entry
-
setFieldentry
public void setFieldentry(String fieldlabel, String setValue)
Description copied from class:ASIBaseClassSet field entry.- Overrides:
setFieldentryin classASIBaseClass- Parameters:
fieldlabel-setValue-noEscapeXML-
-
setFieldentry
public void setFieldentry(String fieldlabel, String setValue, boolean noEscapeXML)
Description copied from class:ASIBaseClassSet field entry.- Overrides:
setFieldentryin classASIBaseClass- Parameters:
fieldlabel-setValue-
-
addSectionRef
public void addSectionRef(String sectionId)
Add a section ref with section Id sectionId.- Parameters:
sectionId-
-
removeSectionRef
public void removeSectionRef(String sectionId)
Remove a section ref with section Id sectionId.- Parameters:
sectionId-
-
removeSectionRefs
public void removeSectionRefs()
Remove all section refs.
-
getSectionRefs
public List getSectionRefs()
Get a collection of section refs.- Returns:
-
getSections
public Collection getSections()
Get a collection of sections.- Returns:
- the sections
-
getItems
public Collection getItems()
Get a collection of items.- Returns:
- the items
-
getSectionRefIds
public List getSectionRefIds()
- Returns:
-
getTitle
public String getTitle()
Assessment title.- Returns:
- title
-
getIdent
public String getIdent()
Assessment id (ident attribute)- Returns:
- ident
-
setIdent
public void setIdent(String ident)
Assessment id (ident attribute)- Parameters:
ident- the ident
-
setTitle
public void setTitle(String title)
Assessment title.- Parameters:
title-
-
getBasePath
public String getBasePath()
Base XPath for the assessment.- Returns:
-
setBasePath
public void setBasePath(String basePath)
Base XPath for the assessment.- Parameters:
basePath-
-
-