public final class Section extends Object
Constructor and Description |
---|
Section(int sectionLevel)
Constructor.
|
Section(int sectionLevel,
List<Sentence> header)
Constructor.
|
Section(int sectionLevel,
String headerString)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
appendListBlock()
Append List.
|
void |
appendListElement(int listLevel,
List<Sentence> contents)
Append List element.
|
void |
appendParagraph(Paragraph pragraph)
Add a paragraph.
|
void |
appendSubSection(Section section)
Add a subsection.
|
Sentence |
getHeaderContent(int id)
Get iterator of header sentences.
|
List<Sentence> |
getHeaderContents()
Get iterator of header sentences.
|
int |
getHeaderContentsListSize()
Get the number of sentences in header.
|
Sentence |
getJoinedHeaderContents()
Get iterator of header sentences.
|
int |
getLevel()
Get level of section.
|
ListBlock |
getListBlock(int id)
Get specified list block.
|
List<ListBlock> |
getListBlocks()
Get specified list block.
|
int |
getNumberOfLists()
Get size of list.
|
int |
getNumberOfParagraphs()
Get the number of paragraphs in the section.
|
int |
getNumberOfSubsections()
Get the size of subsections.
|
Paragraph |
getParagraph(int id)
Get the specified paragraph.
|
List<Paragraph> |
getParagraphs()
Get the iterator of paragraphs of section.
|
Section |
getParentSection()
Get super section.
|
Section |
getSubSection(int id)
Get the iterator of subsections.
|
void |
setLevel(int sectionLevel)
Set level of section.
|
void |
setParentSection(Section parentSection)
Set super section.
|
public Section(int sectionLevel)
sectionLevel
- section levelpublic Section(int sectionLevel, List<Sentence> header)
sectionLevel
- section levelheader
- header contentspublic Section(int sectionLevel, String headerString)
sectionLevel
- section levelheaderString
- header content stringpublic void appendSubSection(Section section)
section
- sectionpublic Section getSubSection(int id)
id
- section idpublic Section getParentSection()
public void setParentSection(Section parentSection)
parentSection
- super sectionpublic int getNumberOfSubsections()
public int getLevel()
public void setLevel(int sectionLevel)
sectionLevel
- section levelpublic List<Sentence> getHeaderContents()
public Sentence getHeaderContent(int id)
id
- id of sentence in headerpublic Sentence getJoinedHeaderContents()
public int getHeaderContentsListSize()
public List<Paragraph> getParagraphs()
public Paragraph getParagraph(int id)
id
- paragraph idpublic void appendParagraph(Paragraph pragraph)
pragraph
- paragraphpublic void appendListBlock()
public void appendListElement(int listLevel, List<Sentence> contents)
listLevel
- list levelcontents
- list contentpublic int getNumberOfLists()
public ListBlock getListBlock(int id)
id
- id of list blockpublic List<ListBlock> getListBlocks()
public int getNumberOfParagraphs()
Copyright © 2015. All rights reserved.