public static class Formatter.Builder extends MutableDataSet
Formatter. See methods for default configuration.| Constructor and Description |
|---|
Builder() |
Builder(DataHolder options) |
Builder(Formatter.Builder other) |
Builder(Formatter.Builder other,
DataHolder options) |
| Modifier and Type | Method and Description |
|---|---|
Formatter |
build() |
Formatter.Builder |
extensions(Iterable<? extends Extension> extensions) |
Formatter.Builder |
nodeFormatterFactory(NodeFormatterFactory nodeFormatterFactory)
Add a factory for instantiating a node renderer (done when rendering).
|
clear, get, getOrCompute, merge, remove, set, setAll, setFrom, setIn, toImmutable, toMutableclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcontains, getAll, keySetpublic Builder()
public Builder(DataHolder options)
public Builder(Formatter.Builder other)
public Builder(Formatter.Builder other, DataHolder options)
public Formatter.Builder nodeFormatterFactory(NodeFormatterFactory nodeFormatterFactory)
If multiple node renderers for the same node type are created, the one from the factory that was added first "wins". (This is how the rendering for core node types can be overridden; the default rendering comes last.)
nodeFormatterFactory - the factory for creating a node rendererthispublic Formatter.Builder extensions(Iterable<? extends Extension> extensions)
extensions - extensions to use on this HTML rendererthisCopyright © 2018. All rights reserved.