Class Section

  • All Implemented Interfaces:
    Serializable

    public class Section
    extends ASIBaseClass

    Copyright: Copyright (c) 2004

    Organization: Sakai Project

    Version:
    $Id$
    Author:
    Ed Smiley esmiley@stanford.edu, Shastri, Rashmi
    See Also:
    Serialized Form
    • 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​(org.sakaiproject.tool.assessment.data.ifc.assessment.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​(List<String> itemRefIds)
        Order item refs
        Parameters:
        itemRefIds - list of ref ids
      • getSectionRefs

        public List<Element> getSectionRefs()
        get section refs
        Returns:
        list of section refs
      • getSectionRefIds

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