public final class SADocumentWithSections extends SADocument
| Constructor and Description |
|---|
SADocumentWithSections(SAIDMap in_ids,
SADocumentTitle in_title,
com.io7m.jfunctional.OptionType<SDocumentContents> in_contents,
com.io7m.jfunctional.OptionType<SDocumentStyle> in_style,
SNonEmptyList<SASection> in_content,
List<SAFootnote> in_footnotes,
SAFormalItemsByKind in_formals)
Construct a new document with sections.
|
| Modifier and Type | Method and Description |
|---|---|
<A> A |
documentAccept(SADocumentVisitor<A> v)
Accept a document visitor.
|
boolean |
equals(Object obj) |
com.io7m.jfunctional.OptionType<SASection> |
getSection(SASectionNumber n) |
SNonEmptyList<SASection> |
getSections() |
int |
hashCode() |
SASegmentNumber |
segmentGetFirst() |
com.io7m.jfunctional.OptionType<SASegmentNumber> |
segmentGetNext(SASegmentNumber n) |
com.io7m.jfunctional.OptionType<SASegmentNumber> |
segmentGetPrevious(SASegmentNumber n) |
com.io7m.jfunctional.OptionType<SASegmentNumber> |
segmentGetUp(SASegmentNumber n) |
getContents, getFootnotes, getFormals, getIDMappings, getStyle, getTitlepublic SADocumentWithSections(SAIDMap in_ids, SADocumentTitle in_title, com.io7m.jfunctional.OptionType<SDocumentContents> in_contents, com.io7m.jfunctional.OptionType<SDocumentStyle> in_style, SNonEmptyList<SASection> in_content, List<SAFootnote> in_footnotes, SAFormalItemsByKind in_formals)
in_ids - The set of mappings from IDs to elementsin_title - The titlein_contents - Whether or not the document has a table of contentsin_style - The stylein_content - The list of sectionsin_footnotes - The list of footnotesin_formals - The formal itemspublic <A> A documentAccept(SADocumentVisitor<A> v) throws Exception
SADocumentdocumentAccept in class SADocumentA - The type of values returned by the visitorv - The visitorException - If the visitor raises an Exceptionpublic boolean equals(@Nullable
Object obj)
equals in class SADocumentpublic com.io7m.jfunctional.OptionType<SASection> getSection(SASectionNumber n)
getSection in class SADocumentn - The section numberpublic SNonEmptyList<SASection> getSections()
public int hashCode()
hashCode in class SADocumentpublic SASegmentNumber segmentGetFirst()
public com.io7m.jfunctional.OptionType<SASegmentNumber> segmentGetNext(SASegmentNumber n)
n - The current segmentpublic com.io7m.jfunctional.OptionType<SASegmentNumber> segmentGetPrevious(SASegmentNumber n)
n - The current segmentpublic com.io7m.jfunctional.OptionType<SASegmentNumber> segmentGetUp(SASegmentNumber n)
n - The current segmentCopyright © 2015 <code@io7m.com> http://io7m.com