Class SectionHelperBase
- java.lang.Object
-
- org.sakaiproject.tool.assessment.qti.helper.section.SectionHelperBase
-
- All Implemented Interfaces:
SectionHelperIfc
- Direct Known Subclasses:
SectionHelper12Impl,SectionHelper20Impl
public abstract class SectionHelperBase extends Object implements SectionHelperIfc
Sections are pretty version-independent, base class does most of the work.Copyright: Copyright (c) 2005
Organization: Sakai Project
- Version:
- $Id$
- Author:
- Ed Smiley esmiley@stanford.edu
some portions of code @author Shastri, Rashmi
-
-
Constructor Summary
Constructors Constructor Description SectionHelperBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract intgetQtiVersion()SectionreadXMLDocument(InputStream inputStream)Read a Section XML object from a streamSectionupdateSectionXml(Section sectionXml, String xpath, String value)Update the Section XML for Xpath
-
-
-
Method Detail
-
getQtiVersion
protected abstract int getQtiVersion()
-
readXMLDocument
public Section readXMLDocument(InputStream inputStream)
Read a Section XML object from a stream- Specified by:
readXMLDocumentin interfaceSectionHelperIfc- Parameters:
inputStream- the stream- Returns:
- the section
-
updateSectionXml
public Section updateSectionXml(Section sectionXml, String xpath, String value)
Update the Section XML for Xpath- Specified by:
updateSectionXmlin interfaceSectionHelperIfc- Parameters:
sectionXml- the Section XMLxpath- the Xpathvalue- the value for Xpath- Returns:
- the updated Section XML
-
-