@Immutable public final class SDocumentWithSections extends SDocument
Modifier and Type | Method and Description |
---|---|
static SDocumentWithSections |
document(SDocumentTitle in_title,
SNonEmptyList<SSection> in_content)
Construct a new document with the given title, and style.
|
<D> D |
documentAccept(SDocumentVisitor<D> v)
Accept a document visitor.
|
static SDocumentWithSections |
documentContents(SDocumentTitle in_title,
SNonEmptyList<SSection> in_content)
Construct a new document with the given title, and table of contents.
|
static SDocumentWithSections |
documentStyle(SDocumentTitle in_title,
SDocumentStyle in_style,
SNonEmptyList<SSection> in_content)
Construct a new document with the given title.
|
static SDocumentWithSections |
documentStyleContents(SDocumentTitle in_title,
SDocumentStyle in_style,
SNonEmptyList<SSection> in_content)
Construct a new document with the given title, style, and table of
contents.
|
boolean |
equals(Object obj) |
SNonEmptyList<SSection> |
getSections() |
int |
hashCode() |
getContents, getStyle, getTitle
public static SDocumentWithSections document(SDocumentTitle in_title, SNonEmptyList<SSection> in_content)
in_title
- The titlein_content
- The sectionspublic static SDocumentWithSections documentContents(SDocumentTitle in_title, SNonEmptyList<SSection> in_content)
in_title
- The titlein_content
- The sectionspublic static SDocumentWithSections documentStyle(SDocumentTitle in_title, SDocumentStyle in_style, SNonEmptyList<SSection> in_content)
in_title
- The titlein_style
- The stylein_content
- The sectionspublic static SDocumentWithSections documentStyleContents(SDocumentTitle in_title, SDocumentStyle in_style, SNonEmptyList<SSection> in_content)
in_title
- The titlein_style
- The stylein_content
- The sectionspublic <D> D documentAccept(SDocumentVisitor<D> v) throws Exception
SDocument
documentAccept
in class SDocument
D
- The type of transformed SDocument
sv
- The visitorException
- If the visitor raises an Exception
public SNonEmptyList<SSection> getSections()
Copyright © 2017 <code@io7m.com> http://io7m.com