public class AttributesBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
AttributesBuilder |
allowUriRead(boolean allowUriRead)
Sets allow uri read attribute.
|
AttributesBuilder |
appendixCaption(java.lang.String appendixCaption)
Sets appendix-caption label.
|
AttributesBuilder |
arguments(java.lang.String... attributes)
Sets attributes in array form.
|
AttributesBuilder |
arguments(java.lang.String attributes)
Sets attributes in string form.
|
java.util.Map<java.lang.String,java.lang.Object> |
asMap()
Gets a map with configured options.
|
AttributesBuilder |
attribute(java.lang.String attributeName)
Sets custom or unlisted attribute to the default value, empty string.
|
AttributesBuilder |
attribute(java.lang.String attributeName,
java.lang.Object attributeValue)
Sets custom or unlisted attribute
|
AttributesBuilder |
attributeMissing(java.lang.String attributeMissing)
Sets attribute missing attribute.
|
static AttributesBuilder |
attributes()
Creates attributes builder.
|
AttributesBuilder |
attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Adds all attributes.
|
static AttributesBuilder |
attributes(java.lang.String arguments)
Creates attributes builder.
|
static AttributesBuilder |
attributes(java.lang.String[] arguments)
Creates attributes builder.
|
AttributesBuilder |
attributeUndefined(java.lang.String attributeUndefined)
Sets attribute undefined attribute.
|
AttributesBuilder |
backend(java.lang.String backend)
Sets backend attribue.
|
AttributesBuilder |
cacheUri(boolean cacheUri)
Sets cache-uri flag.
|
AttributesBuilder |
compatMode(CompatMode compatMode)
Sets compat mode attribute.
|
AttributesBuilder |
copyCss(boolean copyCss)
Sets copy css attribute.
|
AttributesBuilder |
dataUri(boolean dataUri)
Sets data-uri attribute.
|
AttributesBuilder |
docDate(java.util.Date date)
Sets doc date for current document.
|
AttributesBuilder |
docTime(java.util.Date time)
Sets doc time for current document.
|
AttributesBuilder |
docType(java.lang.String docType)
Sets doc type attribute.
|
AttributesBuilder |
experimental(boolean experimental)
Sets experimental attribute.
|
Attributes |
get() |
AttributesBuilder |
hardbreaks(boolean hardbreaks)
Sets hardbreaks at the end of each line.
|
AttributesBuilder |
hiddenUriScheme(boolean hiddenUriScheme)
Sets hide-uri-scheme flag.
|
AttributesBuilder |
iconFontCdn(java.net.URI cdnUri)
The URI prefix of the icon font; looks for minified CSS file based on iconfont-name value; used when iconfont-remote is set
|
AttributesBuilder |
iconFontName(java.lang.String iconFontName)
The name of the stylesheet in the stylesdir to load (.css extension added automatically)
|
AttributesBuilder |
iconFontRemote(boolean iconFontRemote)
Enable icon font remote attribute.
|
AttributesBuilder |
icons(java.lang.String icons)
Sets which admonition icons to use.
|
AttributesBuilder |
iconsDir(java.lang.String iconsDir)
Sets icons directory location.
|
AttributesBuilder |
ignoreUndefinedAttributes(boolean ignoreUndefinedAttributes)
Sets ignore undefined flag so lines are kept when they contain a reference to a missing attribute.
|
AttributesBuilder |
imagesDir(java.lang.String imagesDir)
Sets image directory.
|
AttributesBuilder |
linkAttrs(boolean linkAttrs)
Sets linkattrs attribute.
|
AttributesBuilder |
linkCss(boolean linkCss)
Sets link css attribute.
|
AttributesBuilder |
localDate(java.util.Date date)
Sets local date for document.
|
AttributesBuilder |
localTime(java.util.Date time)
Sets local time for document.
|
AttributesBuilder |
math(java.lang.String math)
Sets math default engine.
|
AttributesBuilder |
maxIncludeDepth(int maxIncludeDepth)
Sets max include depth attribute.
|
AttributesBuilder |
noFooter(boolean noFooter)
Sets nofooter attribute.
|
AttributesBuilder |
sectionNumbers(boolean sectionNumbers)
Auto-number section titles in the HTML backend.
|
AttributesBuilder |
sectNumLevels(int sectnumlevels)
Sets sect num levels attribute.
|
AttributesBuilder |
setAnchors(boolean setAnchors)
Sets setanchor flag.
|
AttributesBuilder |
showTitle(boolean showTitle)
Sets showtitle value as an alias for notitle!
|
AttributesBuilder |
skipFrontMatter(boolean skipFrontMatter)
Skips front matter.
|
AttributesBuilder |
sourceHighlighter(java.lang.String sourceHighlighter)
Sets source highlighter processor.
|
AttributesBuilder |
sourceLanguage(java.lang.String sourceLanguage)
Source language attribute.
|
AttributesBuilder |
stylesDir(java.lang.String stylesDir)
Sets the styles dir.
|
AttributesBuilder |
styleSheetName(java.lang.String styleSheetName)
Sets stylesheet name.
|
AttributesBuilder |
tableOfContents(boolean toc)
Sets if table of contents should be rendered or not
|
AttributesBuilder |
tableOfContents(Placement placement)
Sets table of contents attribute.
|
AttributesBuilder |
tableOfContents2(Placement placement)
Sets table of contents 2 attribute.
|
AttributesBuilder |
title(java.lang.String title)
Sets title of document.
|
AttributesBuilder |
unsetStyleSheet()
Unsets stylesheet name so document will be generated without style.
|
AttributesBuilder |
untitledLabel(java.lang.String untitledLabel)
Sets the untitled label value.
|
public static AttributesBuilder attributes()
public static AttributesBuilder attributes(java.lang.String[] arguments)
public static AttributesBuilder attributes(java.lang.String arguments)
public AttributesBuilder sourceLanguage(java.lang.String sourceLanguage)
sourceLanguage
- value.public AttributesBuilder skipFrontMatter(boolean skipFrontMatter)
skipFrontMatter
- value.public AttributesBuilder ignoreUndefinedAttributes(boolean ignoreUndefinedAttributes)
ignoreUndefinedAttributes
- value.public AttributesBuilder maxIncludeDepth(int maxIncludeDepth)
maxIncludeDepth
- value.public AttributesBuilder sectNumLevels(int sectnumlevels)
sectnumlevels
- value.public AttributesBuilder attributeMissing(java.lang.String attributeMissing)
attributeMissing
- value.public AttributesBuilder attributeUndefined(java.lang.String attributeUndefined)
attributeUndefined
- value.public AttributesBuilder setAnchors(boolean setAnchors)
setAnchors
- value.public AttributesBuilder untitledLabel(java.lang.String untitledLabel)
untitledLabel
- value.public AttributesBuilder tableOfContents(Placement placement)
placement
- where toc is rendered.public AttributesBuilder tableOfContents2(Placement placement)
placement
- where toc is rendered.public AttributesBuilder allowUriRead(boolean allowUriRead)
allowUriRead
- value.public AttributesBuilder backend(java.lang.String backend)
backend
- value.public AttributesBuilder showTitle(boolean showTitle)
showTitle
- value.public AttributesBuilder title(java.lang.String title)
title
- for document.public AttributesBuilder docType(java.lang.String docType)
docType
- value.public AttributesBuilder imagesDir(java.lang.String imagesDir)
imagesDir
- location.public AttributesBuilder sourceHighlighter(java.lang.String sourceHighlighter)
sourceHighlighter
- name of the source highlighting library (e.g., coderay).public AttributesBuilder localDate(java.util.Date date)
date
- public AttributesBuilder localTime(java.util.Date time)
time
- public AttributesBuilder docDate(java.util.Date date)
date
- public AttributesBuilder docTime(java.util.Date time)
time
- public AttributesBuilder tableOfContents(boolean toc)
toc
- valuepublic AttributesBuilder styleSheetName(java.lang.String styleSheetName)
styleSheetName
- of css file.public AttributesBuilder unsetStyleSheet()
public AttributesBuilder stylesDir(java.lang.String stylesDir)
stylesDir
- directory.public AttributesBuilder linkCss(boolean linkCss)
linkCss
- true if css is linked, false if css is embedded.public AttributesBuilder copyCss(boolean copyCss)
copyCss
- true if css should be copied to the output location, false
otherwise.public AttributesBuilder icons(java.lang.String icons)
icons
- value.public AttributesBuilder iconFontRemote(boolean iconFontRemote)
iconFontRemote
- true if attribute enabled false otherwise.public AttributesBuilder iconFontCdn(java.net.URI cdnUri)
cdnUri
- uri where css is stored.public AttributesBuilder iconFontName(java.lang.String iconFontName)
iconFontName
- stylesheet name without .css extension.public AttributesBuilder iconsDir(java.lang.String iconsDir)
iconsDir
- location.public AttributesBuilder dataUri(boolean dataUri)
dataUri
- true if images should be embedded, false otherwise.public AttributesBuilder attribute(java.lang.String attributeName)
attributeName
- A flag-only attribute, such as "icons"public AttributesBuilder sectionNumbers(boolean sectionNumbers)
sectionNumbers
- true if numbers should be autonumbered, false otherwise.public AttributesBuilder hardbreaks(boolean hardbreaks)
hardbreaks
- true if each line should be added a hardbreak, false otherwise.public AttributesBuilder cacheUri(boolean cacheUri)
cacheUri
- true if URI content should be cached, false otherwise.public AttributesBuilder hiddenUriScheme(boolean hiddenUriScheme)
hiddenUriScheme
- true if URI is hidden, false otherwise.public AttributesBuilder appendixCaption(java.lang.String appendixCaption)
appendixCaption
- value.public AttributesBuilder math(java.lang.String math)
math
- value.public AttributesBuilder linkAttrs(boolean linkAttrs)
linkAttrs
- true if Asciidoctor should parse link macro attributes, false otherwise.public AttributesBuilder experimental(boolean experimental)
experimental
- true if experimental features should be enabled, false otherwise.public AttributesBuilder noFooter(boolean noFooter)
noFooter
- true if footer block should not be shown, false otherwise.public AttributesBuilder compatMode(CompatMode compatMode)
compatMode
- value.public AttributesBuilder attribute(java.lang.String attributeName, java.lang.Object attributeValue)
attributeName
- attributeValue
- public AttributesBuilder attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
- map.public AttributesBuilder arguments(java.lang.String attributes)
attributes
- in string format.public AttributesBuilder arguments(java.lang.String... attributes)
attributes
- in array format.public java.util.Map<java.lang.String,java.lang.Object> asMap()
public Attributes get()