01: /**********************************************************************************
02: * $URL: https://source.sakaiproject.org/svn/sam/trunk/component/src/java/org/sakaiproject/tool/assessment/qti/helper/section/SectionHelperIfc.java $
03: * $Id: SectionHelperIfc.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
04: ***********************************************************************************
05: *
06: * Copyright (c) 2003, 2004, 2005, 2006 The Sakai Foundation.
07: *
08: * Licensed under the Educational Community License, Version 1.0 (the"License");
09: * you may not use this file except in compliance with the License.
10: * You may obtain a copy of the License at
11: *
12: * http://www.opensource.org/licenses/ecl1.php
13: *
14: * Unless required by applicable law or agreed to in writing, software
15: * distributed under the License is distributed on an "AS IS" BASIS,
16: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17: * See the License for the specific language governing permissions and
18: * limitations under the License.
19: *
20: **********************************************************************************/package org.sakaiproject.tool.assessment.qti.helper.section;
21:
22: import java.io.InputStream;
23:
24: import org.sakaiproject.tool.assessment.qti.asi.Section;
25:
26: /**
27: * Interface for QTI-versioned section helper implementation.
28: * <p>Copyright: Copyright (c) 2005</p>
29: * <p>Organization: Sakai Project</p>
30: * @author Ed Smiley esmiley@stanford.edu
31: * @version $Id: SectionHelperIfc.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
32: */
33:
34: public interface SectionHelperIfc {
35: /**
36: * Interface for QTI-versioned section helper implementation.
37: * <p>Copyright: Copyright (c) 2005</p>
38: * <p>Organization: Sakai Project</p>
39: * @author Ed Smiley esmiley@stanford.edu
40: * @version $Id: SectionHelperIfc.java 9274 2006-05-10 22:50:48Z daisyf@stanford.edu $
41: */
42:
43: /**
44: * read XML document into Section XML
45: *
46: * @param inputStream the input stream
47: *
48: * @return Section XML
49: */
50: public Section readXMLDocument(InputStream inputStream);
51:
52: /**
53: * Update section XML XPath with value
54: *
55: * @param sectionXml XML PENDING
56: * @param xpath the XPath
57: * @param value the value
58: *
59: * @return the Section XML
60: */
61: public Section updateSectionXml(Section sectionXml, String xpath,
62: String value);
63:
64: }
|