@Immutable public final class SASectionWithParagraphs extends SASection
Constructor and Description |
---|
SASectionWithParagraphs(SASectionNumber in_number,
com.io7m.jfunctional.OptionType<String> in_type,
com.io7m.jfunctional.OptionType<SAID> in_id,
SASectionTitle in_title,
com.io7m.jfunctional.OptionType<SSectionContents> in_contents,
SNonEmptyList<SASubsectionContent> in_subsections,
List<SAFootnote> in_footnotes)
Construct a new section with top-level subsection content.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SASubsectionContent> |
getSectionContent() |
int |
hashCode() |
<A> A |
sectionAccept(SASectionVisitor<A> v)
Accept a section visitor.
|
<T> T |
targetContentAccept(SAIDTargetContentVisitor<T> v)
Accept an ID target content visitor.
|
getContents, getFootnotes, getID, getNumber, getTitle, getType
public SASectionWithParagraphs(SASectionNumber in_number, com.io7m.jfunctional.OptionType<String> in_type, com.io7m.jfunctional.OptionType<SAID> in_id, SASectionTitle in_title, com.io7m.jfunctional.OptionType<SSectionContents> in_contents, SNonEmptyList<SASubsectionContent> in_subsections, List<SAFootnote> in_footnotes)
in_number
- The section numberin_type
- The type attributein_id
- The IDin_title
- The section titlein_contents
- The section table of contentsin_subsections
- The subsection contentin_footnotes
- The footnotespublic SNonEmptyList<SASubsectionContent> getSectionContent()
public <A> A sectionAccept(SASectionVisitor<A> v) throws Exception
SASection
sectionAccept
in class SASection
A
- The type of values returned by the visitorv
- The visitorException
- If the visitor raises an Exception
public <T> T targetContentAccept(SAIDTargetContentVisitor<T> v) throws Exception
SAIDTargetContent
Copyright © 2017 <code@io7m.com> http://io7m.com