Interface JTomlOption<T>
- All Known Subinterfaces:
JTomlOption.Bool
@NonExtendable
public interface JTomlOption<T>
An enum-like option key for JToml
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JTomlOption<ArrayStrategy>Determines how non-table arrays should be written; specifically when elements should receive a newlinestatic final JTomlOption.BoolIf true,static extensionis prohibited.static final JTomlOption<IndentationPolicy>Indentation to apply when writingstatic final JTomlOption<LineSeparator>static final JTomlOption<PaddingPolicy>Padding to apply when writingstatic final JTomlOption<OrderMarkPolicy>Determines if a BOM should be read.static final JTomlOption.BoolIf true, comments will be stored in the resulting document (rather than ignored) when readingstatic final JTomlOption<SortMethod>Determines how keys are sorted within a table when writing.static final JTomlOption<SpacingPolicy>Spacing to apply when writingstatic final JTomlOption<ZoneOffset>Zone offset to use when reading a Local Date-Time as anOffsetDateTimeand when writing aLocalDateTimeas an Offset Date-Timestatic final JTomlOption<OrderMarkPolicy>Determines if a BOM should be writtenstatic final JTomlOption.BoolIf true, comments defined on values will be written.static final JTomlOption.BoolIf true, table headers will be written even if they do not contain any key-values or comments. -
Method Summary
Modifier and TypeMethodDescriptiondefault boolean@NotNull Stringname()intordinal()static @NotNull JTomlOption<?> @NotNull []values()Returns a new array containing all options.
-
Field Details
-
INDENTATION
Indentation to apply when writing -
SPACING
Spacing to apply when writing -
PADDING
Padding to apply when writing -
TIME_ZONE
Zone offset to use when reading a Local Date-Time as anOffsetDateTimeand when writing aLocalDateTimeas an Offset Date-Time -
READ_BOM
-
WRITE_BOM
Determines if a BOM should be written -
LINE_SEPARATOR
The line separator to use when writing and normalizing, eitherLForCRLF. Default is determined bySystem.lineSeparator(). Both line endings can always be read, irrespective of the value of this option. -
EXTENSION_GUARD
If true,static extensionis prohibited. This is required for the parser to be fully TOML-compliant. -
WRITE_EMPTY_TABLES
If true, table headers will be written even if they do not contain any key-values or comments. -
READ_COMMENTS
If true, comments will be stored in the resulting document (rather than ignored) when reading -
WRITE_COMMENTS
If true, comments defined on values will be written. -
ARRAY_STRATEGY
Determines how non-table arrays should be written; specifically when elements should receive a newline -
SORTING
Determines how keys are sorted within a table when writing.
-
-
Method Details
-
values
Returns a new array containing all options. The array is sorted from least to greatestordinal, just as inClass.getEnumConstants() -
ordinal
@Internal int ordinal() -
name
-
valueClass
-
defaultValue
-
isLegal
-