public class SectionBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static Collection<String> |
DEFAULT_SNIPPETS |
| Constructor and Description |
|---|
SectionBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SectionSnippet |
build() |
SectionBuilder |
skipEmpty(boolean skipEmpty)
If snippet would not generate any output (e.g.
|
SectionBuilder |
snippetNames(List<String> snippetNames)
List of snippet names to use in the specified order.
|
SectionBuilder |
snippetNames(String... snippetNames)
Array of snippet names to use in the specified order.
|
public static final Collection<String> DEFAULT_SNIPPETS
public SectionBuilder snippetNames(List<String> snippetNames)
snippetNames - snippet names to use; if not specified, DEFAULT_SNIPPETS will
be usedpublic SectionBuilder snippetNames(String... snippetNames)
snippetNames - snippet names to use; if not specified, DEFAULT_SNIPPETS will
be usedpublic SectionBuilder skipEmpty(boolean skipEmpty)
skipEmpty - true if snippets with no content should not be included in the section;
false otherwise (default)public SectionSnippet build()
Copyright © 2018 Scalable Capital GmbH. All rights reserved.