A set of options related to rendering a ConfigValue. Passed to
ConfigValue#render(ConfigRenderOptions).
Here is an example of creating a ConfigRenderOptions:
ConfigRenderOptions options =
ConfigRenderOptions.defaults().setComments(false)
| Modifier and Type | Field and Description |
|---|---|
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean | |
| private final boolean |
| Access | Constructor and Description |
|---|---|
| private | ConfigRenderOptions(boolean originComments, boolean comments, boolean formatted, boolean json, boolean showEnvVariableValues)
|
| Modifier and Type | Method and Description |
|---|---|
| public static ConfigRenderOptions | Returns: the concise render optionsReturns concise render options (no whitespace or comments). |
| public static ConfigRenderOptions | Returns: the default render optionsReturns the default render options which are verbose (commented and formatted). |
| public boolean | Returns: true if comments should be renderedReturns whether the options enable comments. |
| public boolean | Returns: true if the options enable formattingReturns whether the options enable formatting. |
| public boolean | |
| public boolean | Returns: true if origin comments should be renderedReturns whether the options enable automated origin comments. |
| public boolean | Returns: true if environment variable values should be renderedReturns whether the options enable rendering of environment variable values. |
| public ConfigRenderOptions | Returns: options with requested setting for commentstrue to include comments in the render value)Returns options with comments toggled. |
| public ConfigRenderOptions | Returns: options with requested setting for formattingtrue to enable formatting value)Returns options with formatting toggled. |
| public ConfigRenderOptions | Returns: options with requested setting for JSONtrue to include non-JSON extensions in the render value)Returns options with JSON toggled. |
| public ConfigRenderOptions | Returns: options with origin comments toggledtrue to include autogenerated setting-origin comments in the
render value)Returns options with origin comments toggled. |
| public ConfigRenderOptions | Returns: options with requested setting for environment variablestrue to include environment variable values in the render value)Returns options with showEnvVariableValues toggled. |
| public String |
| comments | back to summary |
|---|---|
| private final boolean comments | |
| formatted | back to summary |
|---|---|
| private final boolean formatted | |
| json | back to summary |
|---|---|
| private final boolean json | |
| originComments | back to summary |
|---|---|
| private final boolean originComments | |
| showEnvVariableValues | back to summary |
|---|---|
| private final boolean showEnvVariableValues | |
| ConfigRenderOptions | back to summary |
|---|---|
| private ConfigRenderOptions(boolean originComments, boolean comments, boolean formatted, boolean json, boolean showEnvVariableValues) | |
| concise | back to summary |
|---|---|
| public static ConfigRenderOptions concise() Returns concise render options (no whitespace or comments). For a
resolved
| |
| defaults | back to summary |
|---|---|
| public static ConfigRenderOptions defaults() Returns the default render options which are verbose (commented and
formatted). See
| |
| getComments | back to summary |
|---|---|
| public boolean getComments() Returns whether the options enable comments. This method is mostly used by the config lib internally, not by applications.
| |
| getFormatted | back to summary |
|---|---|
| public boolean getFormatted() Returns whether the options enable formatting. This method is mostly used by the config lib internally, not by applications.
| |
| getJson | back to summary |
|---|---|
| public boolean getJson() Returns whether the options enable JSON. This method is mostly used by the config lib internally, not by applications.
| |
| getOriginComments | back to summary |
|---|---|
| public boolean getOriginComments() Returns whether the options enable automated origin comments. This method is mostly used by the config lib internally, not by applications.
| |
| getShowEnvVariableValues | back to summary |
|---|---|
| public boolean getShowEnvVariableValues() Returns whether the options enable rendering of environment variable values. This method is mostly used by the config lib internally, not by applications.
| |
| setComments | back to summary |
|---|---|
| public ConfigRenderOptions setComments(boolean value) Returns options with comments toggled. This controls human-written
comments but not the autogenerated "origin of this setting" comments,
which are controlled by
| |
| setFormatted | back to summary |
|---|---|
| public ConfigRenderOptions setFormatted(boolean value) Returns options with formatting toggled. Formatting means indentation and whitespace, enabling formatting makes things prettier but larger.
| |
| setJson | back to summary |
|---|---|
| public ConfigRenderOptions setJson(boolean value) Returns options with JSON toggled. JSON means that HOCON extensions
(omitting commas, quotes for example) won't be used. However, whether to
use comments is controlled by the separate
| |
| setOriginComments | back to summary |
|---|---|
| public ConfigRenderOptions setOriginComments(boolean value) Returns options with origin comments toggled. If this is enabled, the
library generates comments for each setting based on the
| |
| setShowEnvVariableValues | back to summary |
|---|---|
| public ConfigRenderOptions setShowEnvVariableValues(boolean value) Returns options with showEnvVariableValues toggled. This controls if values set from environment variables are included in the rendered string.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |