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

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.Section
All Implemented Interfaces:
Serializable

public class Section
extends ASIBaseClass

Copyright: Copyright (c) 2004

Organization: Sakai Project

Version:
$Id: Section.java 6162 2006-02-21 20:32:20Z lydial@stanford.edu $
Author:
Ed Smiley esmiley@stanford.edu, Shastri, Rashmi
See Also:
Serialized Form

Field Summary
 String basePath
           
 
Constructor Summary
Section()
          Creates a new Section object.
Section(Document document, int qtiVersion)
          Creates a new Section object.
 
Method Summary
 void addItemRef(String itemId)
          ASI OKI implementation
 void addSectionRef(String sectionId)
          add section ref
 void createFieldentry(String fieldlabel)
          Method for meta data.
 String getBasePath()
          get Xpath of section
 String getFieldentry(String fieldlabel)
          Method for meta data.
 List getSectionRefIds()
          get section ref ids
 List getSectionRefs()
          get section refs
 void orderItemRefs(ArrayList itemRefIds)
          Order item refs
 void removeItemRef(String itemId)
          remove item ref
 void removeSectionRef(String sectionId)
          remove section ref
 void setBasePath(String basePath)
          set XPath of section
 void setFieldentry(String fieldlabel, String setValue)
          Method for meta data.
 void setIdent(String ident)
          set section ident (id)
 void setTitle(String title)
          set section title
 void update(SectionDataIfc section)
          Update XML from persistence
 
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
 

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(SectionDataIfc section)
Update XML from persistence

Parameters:
section -

getFieldentry

public String getFieldentry(String fieldlabel)
Method for meta data.

Overrides:
getFieldentry in class ASIBaseClass
Parameters:
fieldlabel - field label
Returns:
value

setFieldentry

public void setFieldentry(String fieldlabel,
                          String setValue)
Method for meta data.

Overrides:
setFieldentry in class ASIBaseClass
Parameters:
fieldlabel - label
setValue - 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(ArrayList itemRefIds)
Order item refs

Parameters:
itemRefIds - list of ref ids

getSectionRefs

public List getSectionRefs()
get section refs

Returns:
list of section refs

getSectionRefIds

public List 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 -