org.sakaiproject.tool.assessment.contentpackaging
Class Manifest

java.lang.Object
  extended by org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
      extended by org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
          extended by org.sakaiproject.tool.assessment.contentpackaging.Manifest
All Implemented Interfaces:
Serializable

public class Manifest
extends ASIBaseClass

Copyright: Copyright (c) 2003-5

Organization: Sakai Project

Version:
$Id: Assessment.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
Author:
casong, Ed Smiley esmiley@stanford.edu
See Also:
Serialized Form

Field Summary
static String FILE_PATH
           
static String MANIFEST_TAG
           
static String RESOURCE_PATH
           
 
Constructor Summary
protected Manifest()
          Creates a new Assessment object.
  Manifest(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 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 prefixPath, String fieldlabel, String setValue)
           
 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, getFieldentry, getIdString, getNumOfSections, removeSections, setFieldentry, setFieldentry, 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
 

Field Detail

MANIFEST_TAG

public static final String MANIFEST_TAG
See Also:
Constant Field Values

RESOURCE_PATH

public static final String RESOURCE_PATH
See Also:
Constant Field Values

FILE_PATH

public static final String FILE_PATH
See Also:
Constant Field Values
Constructor Detail

Manifest

protected Manifest()
Creates a new Assessment object.


Manifest

public Manifest(Document document)
Creates a new Assessment object.

Parameters:
document - the Document containing the assessment.
Method Detail

setFieldentry

public void setFieldentry(String prefixPath,
                          String fieldlabel,
                          String setValue)
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 -


Copyright © 2007-2013 Sakai Project. All Rights Reserved.