@Immutable public final class SDocumentWithParts extends SDocument
Modifier and Type | Method and Description |
---|---|
static SDocumentWithParts |
document(SDocumentTitle in_title,
SNonEmptyList<SPart> in_content)
Construct a new document with the given title, and style.
|
<D> D |
documentAccept(SDocumentVisitor<D> v)
Accept a document visitor.
|
static SDocumentWithParts |
documentContents(SDocumentTitle in_title,
SNonEmptyList<SPart> in_content)
Construct a new document with the given title, and table of contents.
|
static SDocumentWithParts |
documentStyle(SDocumentTitle in_title,
SDocumentStyle in_style,
SNonEmptyList<SPart> in_content)
Construct a new document with the given title.
|
static SDocumentWithParts |
documentStyleContents(SDocumentTitle in_title,
SDocumentStyle in_style,
SNonEmptyList<SPart> in_content)
Construct a new document with the given title, style, and table of
contents.
|
boolean |
equals(Object obj) |
SNonEmptyList<SPart> |
getParts() |
int |
hashCode() |
getContents, getStyle, getTitle
public static SDocumentWithParts document(SDocumentTitle in_title, SNonEmptyList<SPart> in_content)
in_title
- The titlein_content
- The sectionspublic static SDocumentWithParts documentContents(SDocumentTitle in_title, SNonEmptyList<SPart> in_content)
in_title
- The titlein_content
- The sectionspublic static SDocumentWithParts documentStyle(SDocumentTitle in_title, SDocumentStyle in_style, SNonEmptyList<SPart> in_content)
in_title
- The titlein_style
- The stylein_content
- The sectionspublic static SDocumentWithParts documentStyleContents(SDocumentTitle in_title, SDocumentStyle in_style, SNonEmptyList<SPart> 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<SPart> getParts()
Copyright © 2017 <code@io7m.com> http://io7m.com