org.sakaiproject.tool.assessment.qti.asi
Class Assessment

java.lang.Object
  extended byorg.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
      extended byorg.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
          extended byorg.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: Assessment.java 1724 2005-09-14 23:36:24Z esmiley@stanford.edu $
Author:
casong, Ed Smiley esmiley@stanford.edu
See Also:
Serialized Form

Constructor Summary
protected Assessment()
          Creates a new Assessment object.
  Assessment(Document document)
          Creates a new Assessment object.
 
Method Summary
 void addSectionRef(String sectionId)
          Add a section ref with section Id sectionId.
 String getBasePath()
          Base XPath for the assessment.
 String getFieldentry(String fieldlabel)
          Method for meta data.
 String getIdent()
          Assessment id (ident attribute)
 Collection getItems()
          Get a collection of items.
 List getSectionRefIds()
           
 List getSectionRefs()
          Get a collection of section refs.
 Collection getSections()
          Get a collection of sections.
 String getTitle()
          Assessment title.
 void removeSectionRef(String sectionId)
          Remove a section ref with section Id sectionId.
 void removeSectionRefs()
          Remove all section refs.
 void setBasePath(String basePath)
          Base XPath for the assessment.
 void setFieldentry(String fieldlabel, String setValue)
          Set field entry.
 void setIdent(String ident)
          Assessment id (ident attribute)
 void setTitle(String title)
          Assessment title.
 
Methods inherited from class org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
createFieldentry, escapeXml, extractString, getAllSections, getIdString, getNumOfSections, processSelectElement, removeSections, selectSections, setIdString, wrappingMattext
 
Methods inherited from class org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
add, addAttribute, addElement, addJDOMElement, clear, getDocument, insertElement, isEmpty, removeElement, replace, selectNodes, selectSingleValue, stringValue, update, update
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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:
getFieldentry in class ASIBaseClass
Parameters:
fieldlabel - the fieldlabel
Returns:
the entry

setFieldentry

public void setFieldentry(String fieldlabel,
                          String setValue)
Description copied from class: ASIBaseClass
Set field entry.

Overrides:
setFieldentry in class ASIBaseClass
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 -