Modifier and Type | Class and Description |
---|---|
static class |
ExcerptConfig.Builder |
Modifier | Constructor and Description |
---|---|
protected |
ExcerptConfig(ExcerptConfig.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static ExcerptConfig.Builder |
builder()
Factory method for creating builders for this class
|
protected Set<String> |
getBlockElementSet() |
protected Set<String> |
getContainerElementSet() |
Set<String> |
getExcludedHtmlElements() |
Set<String> |
getExcludedLastHtmlElements()
a set of html tags that the excerpter will attempt to not finish on.
|
MacroDefinitionUpdater |
getMacroDefinitionUpdater()
A macro definition updater to be applied to the storage format before rendering the excerpt to view.
|
int |
getMaxBlocks()
The maximum number of blocks to include in this excerpt.
|
int |
getMaxCharCount()
The maximum character count to include in the excerpt.
|
int |
getMinBlocks()
The minimum block count to include in the excerpt, the excerpter should continue accepting blocks whilst no other
maximums are exceeded if the block count is below this number.
|
int |
getMinCharCount()
The minimum character count to include in the excerpt, the excerpt should continue taking characters whilst no
other maximums are exceeded if the character count is below this number.
|
boolean |
ignoreUserDefinedExcerpt()
Determines if user defined excerpts (e.g.
|
protected ExcerptConfig(ExcerptConfig.Builder builder)
public static ExcerptConfig.Builder builder()
public int getMaxBlocks()
public int getMinBlocks()
public int getMinCharCount()
public int getMaxCharCount()
public Set<String> getExcludedHtmlElements()
public Set<String> getExcludedLastHtmlElements()
public MacroDefinitionUpdater getMacroDefinitionUpdater()
public boolean ignoreUserDefinedExcerpt()
Default is currently true to keep backwards compatibility, but callers that care should explicitly set this to true or false, as we will change the default in a future release.
Copyright © 2003–2020 Atlassian. All rights reserved.