Package edu.upf.taln.dri.lib.model.ext
Class SectionImpl
- java.lang.Object
-
- edu.upf.taln.dri.lib.model.BaseDocumentElem
-
- edu.upf.taln.dri.lib.model.ext.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.
-
-
Field Summary
-
Fields inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
cacheManager
-
-
Constructor Summary
Constructors Constructor Description SectionImpl(DocCacheManager cacheManager)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addChildSectionId(Integer newChildSectId)
boolean
addSentenceId(Integer newSentId)
String
asString(boolean compactOutput)
String representation of the objectList<Integer>
getChildrenSectionId()
Integer
getId()
Document-wide unambiguous section IdLangENUM
getLanguage()
Get the language of the section titleInteger
getLevel()
Text of the section levelString
getName()
Text of the section headerSection
getParentSection()
Get the parent sectionInteger
getParentSectionId()
List<Sentence>
getSentences()
Get the ordered list of sentences inside the sectionList<Integer>
getSentencesId()
List<Section>
getSubsections()
Get subsectionsvoid
setChildrenSectionId(List<Integer> childrenSectionId)
void
setId(Integer id)
void
setLanguage(LangENUM languge)
void
setLevel(Integer level)
void
setName(String name)
void
setParentSectionId(Integer parentSectionId)
void
setSentencesId(List<Integer> sentencesId)
-
Methods inherited from class edu.upf.taln.dri.lib.model.BaseDocumentElem
getCacheManager, setCacheManager
-
-
-
-
Constructor Detail
-
SectionImpl
public SectionImpl(DocCacheManager cacheManager)
-
-
Method Detail
-
getId
public Integer getId()
Description copied from interface:Section
Document-wide unambiguous section Id
-
setId
public void setId(Integer id)
-
getName
public String getName()
Description copied from interface:Section
Text of the section header
-
setName
public void setName(String name)
-
getLevel
public Integer getLevel()
Description copied from interface:Section
Text of the section level
-
setLevel
public void setLevel(Integer level)
-
getParentSectionId
public Integer getParentSectionId()
-
setParentSectionId
public void setParentSectionId(Integer parentSectionId)
-
addSentenceId
public boolean addSentenceId(Integer newSentId)
-
addChildSectionId
public boolean addChildSectionId(Integer newChildSectId)
-
getParentSection
public Section getParentSection()
Description copied from interface:Section
Get the parent section- Specified by:
getParentSection
in interfaceSection
- Returns:
-
getSubsections
public List<Section> getSubsections()
Description copied from interface:Section
Get subsections- Specified by:
getSubsections
in interfaceSection
- Returns:
-
getSentences
public List<Sentence> getSentences()
Description copied from interface:Section
Get the ordered list of sentences inside the section- Specified by:
getSentences
in interfaceSection
- 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 interfaceSection
- Returns:
-
-