public class Section extends ASIBaseClass
Copyright: Copyright (c) 2004
Organization: Sakai Project
| Constructor and Description |
|---|
Section()
Creates a new Section object.
|
Section(Document document,
int qtiVersion)
Creates a new Section object.
|
| Modifier and Type | Method and Description |
|---|---|
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<String> |
getSectionRefIds()
get section ref ids
|
List<Element> |
getSectionRefs()
get section refs
|
void |
orderItemRefs(List<String> 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
|
createFieldentry, escapeXml, extractString, getAllSections, getIdString, getNumOfSections, removeSections, setFieldentry, setIdString, wrappingMattextadd, addAttribute, addElement, addJDOMElement, clear, createChildElement, getDocument, getValueOf, insertElement, isEmpty, removeElement, replace, selectNodes, selectSingleValue, stringValue, update, updatepublic String basePath
public Section()
public Section(Document document, int qtiVersion)
document - DOCUMENTATION PENDINGpublic void setIdent(String ident)
ident - public void setTitle(String title)
title - public void update(SectionDataIfc section)
section - public String getFieldentry(String fieldlabel)
getFieldentry in class ASIBaseClassfieldlabel - field labelpublic void setFieldentry(String fieldlabel, String setValue)
setFieldentry in class ASIBaseClassfieldlabel - labelsetValue - valuepublic void createFieldentry(String fieldlabel)
fieldlabel - to be addedpublic void addItemRef(String itemId)
itemId - item idpublic void removeItemRef(String itemId)
itemId - igem idpublic void addSectionRef(String sectionId)
sectionId - section idpublic void removeSectionRef(String sectionId)
sectionId - DOCUMENTATION PENDINGpublic void orderItemRefs(List<String> itemRefIds)
itemRefIds - list of ref idspublic List<String> getSectionRefIds()
public String getBasePath()
public void setBasePath(String basePath)
basePath - Copyright © 2005–2018 Sakai Project. All rights reserved.