Class Section
- java.lang.Object
-
- org.sakaiproject.tool.assessment.qti.util.XmlStringBuffer
-
- org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
-
- org.sakaiproject.tool.assessment.qti.asi.Section
-
- All Implemented Interfaces:
Serializable
public class Section extends ASIBaseClass
Copyright: Copyright (c) 2004
Organization: Sakai Project
- Version:
- $Id$
- Author:
- Ed Smiley esmiley@stanford.edu, Shastri, Rashmi
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddItemRef(String itemId)ASI OKI implementationvoidaddSectionRef(String sectionId)add section refvoidcreateFieldentry(String fieldlabel)Method for meta data.StringgetBasePath()get Xpath of sectionStringgetFieldentry(String fieldlabel)Method for meta data.List<String>getSectionRefIds()get section ref idsList<Element>getSectionRefs()get section refsvoidorderItemRefs(List<String> itemRefIds)Order item refsvoidremoveItemRef(String itemId)remove item refvoidremoveSectionRef(String sectionId)remove section refvoidsetBasePath(String basePath)set XPath of sectionvoidsetFieldentry(String fieldlabel, String setValue)Method for meta data.voidsetIdent(String ident)set section ident (id)voidsetTitle(String title)set section titlevoidupdate(org.sakaiproject.tool.assessment.data.ifc.assessment.SectionDataIfc section)Update XML from persistence-
Methods inherited from class org.sakaiproject.tool.assessment.qti.asi.ASIBaseClass
createFieldentry, escapeXml, extractString, getAllSections, getIdString, getNumOfSections, removeSections, 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
-
basePath
public String basePath
-
-
Constructor Detail
-
Section
public Section()
Creates a new Section object.
-
Section
public Section(Document document, int qtiVersion)
Creates a new Section object.- Parameters:
document- DOCUMENTATION PENDING
-
-
Method Detail
-
setIdent
public void setIdent(String ident)
set section ident (id)- Parameters:
ident-
-
setTitle
public void setTitle(String title)
set section title- Parameters:
title-
-
update
public void update(org.sakaiproject.tool.assessment.data.ifc.assessment.SectionDataIfc section)
Update XML from persistence- Parameters:
section-
-
getFieldentry
public String getFieldentry(String fieldlabel)
Method for meta data.- Overrides:
getFieldentryin classASIBaseClass- Parameters:
fieldlabel- field label- Returns:
- value
-
setFieldentry
public void setFieldentry(String fieldlabel, String setValue)
Method for meta data.- Overrides:
setFieldentryin classASIBaseClass- Parameters:
fieldlabel- labelsetValue- value
-
createFieldentry
public void createFieldentry(String fieldlabel)
Method for meta data.- Parameters:
fieldlabel- to be added
-
addItemRef
public void addItemRef(String itemId)
ASI OKI implementation- Parameters:
itemId- item id
-
removeItemRef
public void removeItemRef(String itemId)
remove item ref- Parameters:
itemId- igem id
-
addSectionRef
public void addSectionRef(String sectionId)
add section ref- Parameters:
sectionId- section id
-
removeSectionRef
public void removeSectionRef(String sectionId)
remove section ref- Parameters:
sectionId- DOCUMENTATION PENDING
-
orderItemRefs
public void orderItemRefs(List<String> itemRefIds)
Order item refs- Parameters:
itemRefIds- list of ref ids
-
getSectionRefIds
public List<String> getSectionRefIds()
get section ref ids- Returns:
- list of section ref ids
-
getBasePath
public String getBasePath()
get Xpath of section- Returns:
- the Xpath
-
setBasePath
public void setBasePath(String basePath)
set XPath of section- Parameters:
basePath-
-
-