Class Manifest
- java.lang.Object
-
- org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
-
- org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
-
- 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$
- Author:
- casong, Ed Smiley esmiley@stanford.edu
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringFILE_PATHstatic StringMANIFEST_TAGstatic StringRESOURCE_PATH
-
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.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 prefixPath, String fieldlabel, String setValue)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, getFieldentry, getIdString, getNumOfSections, removeSections, setFieldentry, setFieldentry, 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
-
-
-
-
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-
-
-