@Immutable public final class SSectionWithSubsections extends SSection
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
SNonEmptyList<SSubsection> |
getSubsections() |
int |
hashCode() |
static SSectionWithSubsections |
section(SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given title and content.
|
<S> S |
sectionAccept(SSectionVisitor<S> v)
Accept a section visitor.
|
static SSectionWithSubsections |
sectionID(SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given id, title, and content.
|
static SSectionWithSubsections |
sectionTyped(String type,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, title, and content.
|
static SSectionWithSubsections |
sectionTypedID(String type,
SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, id, title, and content.
|
static SSectionWithSubsections |
sectionWithContents(SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given title, content, and with a table of
contents.
|
static SSectionWithSubsections |
sectionWithContentsID(SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given id, title, content, and with a table of
contents.
|
static SSectionWithSubsections |
sectionWithContentsTyped(String type,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, title, content, and with a table of
contents.
|
static SSectionWithSubsections |
sectionWithContentsTypedID(String type,
SID id,
SSectionTitle in_title,
SNonEmptyList<SSubsection> in_content)
Create a section with the given type, id, title, content, and with a
table of contents.
|
getContents, getID, getTitle, getType@Nonnull public static SSectionWithSubsections section(@Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
in_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionID(@Nonnull SID id, @Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
id - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionTyped(@Nonnull String type, @Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
type - The typein_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionTypedID(@Nonnull String type, @Nonnull SID id, @Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
type - The typeid - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionWithContents(@Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
in_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionWithContentsID(@Nonnull SID id, @Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
id - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionWithContentsTyped(@Nonnull String type, @Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
type - The typein_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public static SSectionWithSubsections sectionWithContentsTypedID(@Nonnull String type, @Nonnull SID id, @Nonnull SSectionTitle in_title, @Nonnull SNonEmptyList<SSubsection> in_content) throws com.io7m.jaux.Constraints.ConstraintError
type - The typeid - The IDin_title - The titlein_content - The contentcom.io7m.jaux.Constraints.ConstraintError - If any parameter is null@Nonnull public SNonEmptyList<SSubsection> getSubsections()
public <S> S sectionAccept(@Nonnull SSectionVisitor<S> v) throws com.io7m.jaux.Constraints.ConstraintError, Exception
SSectionsectionAccept in class SSectionS - The type of transformed SSectionsv - The visitorcom.io7m.jaux.Constraints.ConstraintError - If the visitor raises Constraints.ConstraintErrorException - If the visitor raises an ExceptionCopyright © 2014 <code@io7m.com> http://io7m.com