org.sakaiproject.tool.assessment.qti.helper.section
Class SectionHelperBase

java.lang.Object
  extended by 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: SectionHelperBase.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
Author:
Ed Smiley esmiley@stanford.edu some portions of code @author Shastri, Rashmi

Constructor Summary
SectionHelperBase()
           
 
Method Summary
protected abstract  int getQtiVersion()
           
 Section readXMLDocument(InputStream inputStream)
          Read a Section XML object from a stream
 Section updateSectionXml(Section sectionXml, String xpath, String value)
          Update the Section XML for Xpath
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SectionHelperBase

public SectionHelperBase()
Method Detail

getQtiVersion

protected abstract int getQtiVersion()

readXMLDocument

public Section readXMLDocument(InputStream inputStream)
Read a Section XML object from a stream

Specified by:
readXMLDocument in interface SectionHelperIfc
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:
updateSectionXml in interface SectionHelperIfc
Parameters:
sectionXml - the Section XML
xpath - the Xpath
value - the value for Xpath
Returns:
the updated Section XML


Copyright © 2005-2012 Sakai Project. All Rights Reserved.