Class SectionImpl

  • All Implemented Interfaces:
    Section

    public class SectionImpl
    extends BaseDocumentElem
    implements Section
    IMPORTANT: Never instantiate directly this class!
    Sentence of a document together with its descriptive features.
    • Constructor Detail

    • Method Detail

      • getId

        public Integer getId()
        Description copied from interface: Section
        Document-wide unambiguous section Id
        Specified by:
        getId in interface Section
        Returns:
      • setId

        public void setId​(Integer id)
      • getName

        public String getName()
        Description copied from interface: Section
        Text of the section header
        Specified by:
        getName in interface Section
        Returns:
      • setName

        public void setName​(String name)
      • getLevel

        public Integer getLevel()
        Description copied from interface: Section
        Text of the section level
        Specified by:
        getLevel in interface Section
        Returns:
      • setLevel

        public void setLevel​(Integer level)
      • getParentSectionId

        public Integer getParentSectionId()
      • setParentSectionId

        public void setParentSectionId​(Integer parentSectionId)
      • getChildrenSectionId

        public List<Integer> getChildrenSectionId()
      • setChildrenSectionId

        public void setChildrenSectionId​(List<Integer> childrenSectionId)
      • getSentencesId

        public List<Integer> getSentencesId()
      • setSentencesId

        public void setSentencesId​(List<Integer> sentencesId)
      • addSentenceId

        public boolean addSentenceId​(Integer newSentId)
      • addChildSectionId

        public boolean addChildSectionId​(Integer newChildSectId)
      • getSentences

        public List<Sentence> getSentences()
        Description copied from interface: Section
        Get the ordered list of sentences inside the section
        Specified by:
        getSentences in interface Section
        Returns:
      • setLanguage

        public void setLanguage​(LangENUM languge)
      • getLanguage

        public LangENUM getLanguage()
        Description copied from interface: Section
        Get the language of the section title
        Specified by:
        getLanguage in interface Section
        Returns:
      • asString

        public String asString​(boolean compactOutput)
        Description copied from interface: Section
        String representation of the object
        Specified by:
        asString in interface Section
        Returns: