public class OptionsBuilder
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
asMap()
Gets a map with configured options.
|
OptionsBuilder |
attributes(Attributes attributes)
Sets attributes used for rendering input.
|
OptionsBuilder |
attributes(AttributesBuilder attributes)
Sets attributes used for rendering input.
|
OptionsBuilder |
attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
Sets attributes used for rendering input.
|
OptionsBuilder |
backend(java.lang.String backend)
Sets backend option.
|
OptionsBuilder |
baseDir(java.io.File baseDir)
Sets base dir for working directory.
|
OptionsBuilder |
catalogAssets(boolean catalogAssets)
If true, tells the parser to capture images and links in the reference table.
|
OptionsBuilder |
compact(boolean compact)
Compact the output removing blank lines.
|
OptionsBuilder |
destinationDir(java.io.File destinationDir)
Destination output directory.
|
OptionsBuilder |
docType(java.lang.String docType)
Sets doctype option.
|
OptionsBuilder |
eruby(java.lang.String eruby)
Sets eruby implementation.
|
Options |
get() |
OptionsBuilder |
headerFooter(boolean headerFooter)
Sets header footer attribute.
|
OptionsBuilder |
inPlace(boolean inPlace)
Sets in place attribute.
|
OptionsBuilder |
mkDirs(boolean mkDirs)
Sets if asciidoctor should create output directory if it does not exist or not.
|
OptionsBuilder |
option(java.lang.String option,
java.lang.Object value)
Sets a custom or unlisted option.
|
static OptionsBuilder |
options()
Creates options builder instance.
|
OptionsBuilder |
parse(boolean parse)
If true, the source is parsed eagerly (i.e., as soon as the source is passed to the load or load_file API).
|
OptionsBuilder |
parseHeaderOnly(boolean parseHeaderOnly)
Sets parse header only falg.
|
OptionsBuilder |
safe(SafeMode safeMode)
Sets the safe mode.
|
OptionsBuilder |
sourceDir(java.io.File srcDir)
Source directory.
|
OptionsBuilder |
sourcemap(boolean sourcemap)
Keeps track of the file and line number for each parsed block.
|
OptionsBuilder |
templateCache(boolean templateCache)
Sets if Asciidoctor should use template cache or not.
|
OptionsBuilder |
templateDir(java.io.File templateDir)
Sets template directory.
|
OptionsBuilder |
templateDirs(java.io.File... templateDirs)
Sets template directories.
|
OptionsBuilder |
templateEngine(java.lang.String templateEngine)
Sets the template engine.
|
OptionsBuilder |
toDir(java.io.File directory)
Sets to dir value.
|
OptionsBuilder |
toFile(boolean toFile)
Sets to file value.
|
OptionsBuilder |
toFile(java.io.File toFile)
Sets to file value.
|
OptionsBuilder |
toStream(java.io.OutputStream toStream) |
public static OptionsBuilder options()
public OptionsBuilder backend(java.lang.String backend)
backend
- value.public OptionsBuilder docType(java.lang.String docType)
docType
- value.public OptionsBuilder inPlace(boolean inPlace)
inPlace
- value.public OptionsBuilder headerFooter(boolean headerFooter)
headerFooter
- value.public OptionsBuilder templateDir(java.io.File templateDir)
templateDir
- directory where templates are stored.public OptionsBuilder templateDirs(java.io.File... templateDirs)
templateDirs
- directories where templates are stored.public OptionsBuilder templateEngine(java.lang.String templateEngine)
templateEngine
- used to render the document.public OptionsBuilder templateCache(boolean templateCache)
templateCache
- true if template cache is required, false otherwise.public OptionsBuilder attributes(java.util.Map<java.lang.String,java.lang.Object> attributes)
attributes
- map.public OptionsBuilder attributes(Attributes attributes)
attributes
- map.public OptionsBuilder attributes(AttributesBuilder attributes)
attributes
- builder.public OptionsBuilder toFile(boolean toFile)
toFile
- true
to write output to a file, false
to write output to a string.public OptionsBuilder toFile(java.io.File toFile)
toFile
- name of output file.public OptionsBuilder toStream(java.io.OutputStream toStream)
public OptionsBuilder toDir(java.io.File directory)
directory
- where output is generated.public OptionsBuilder mkDirs(boolean mkDirs)
mkDirs
- true if directory must be created, false otherwise.public OptionsBuilder safe(SafeMode safeMode)
safeMode
- to run asciidoctor.public OptionsBuilder sourcemap(boolean sourcemap)
sourcemap
- value.public OptionsBuilder eruby(java.lang.String eruby)
eruby
- implementation.public OptionsBuilder catalogAssets(boolean catalogAssets)
catalogAssets
- value.public OptionsBuilder compact(boolean compact)
compact
- value.public OptionsBuilder parse(boolean parse)
parse
- value.public OptionsBuilder parseHeaderOnly(boolean parseHeaderOnly)
parseHeaderOnly
- value.public OptionsBuilder destinationDir(java.io.File destinationDir)
destinationDir
- destination directory.public OptionsBuilder sourceDir(java.io.File srcDir)
destinationDir(File)
.srcDir
- source directory.public OptionsBuilder option(java.lang.String option, java.lang.Object value)
option
- name.value
- for given option.public OptionsBuilder baseDir(java.io.File baseDir)
baseDir
- working directory.public java.util.Map<java.lang.String,java.lang.Object> asMap()
public Options get()