Package org.apache.juneau.marshall.toml
Annotation Interface TomlConfig
@Target({TYPE,METHOD})
@Retention(RUNTIME)
@Inherited
@ContextApply({SerializerApply.class,ParserApply.class})
public @interface TomlConfig
Annotation for specifying config properties defined in
TomlSerializer and TomlParser.
Used primarily for specifying bean configuration properties on REST classes and methods.
Example:
-
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionMaximum number of properties for a table to be written in inline-table format.String written for null values; the parser treats values matching this string as null.intOptional rank for this config.Sort keys alphabetically in output.Use inline tables when possible.
-
Element Details
-
nullValue
String written for null values; the parser treats values matching this string as null.An empty value (the default) leaves the builder default of
"<NULL>" in place. Applied to bothTomlSerializerandTomlParser.Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
Supports VarResolver.DEFAULT (e.g.
-
inlineTableThreshold
Maximum number of properties for a table to be written in inline-table format.An empty value (the default) leaves the builder default in place.
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
Supports VarResolver.DEFAULT (e.g.
-
useInlineTables
Use inline tables when possible."true" "false"
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
sortKeys
Sort keys alphabetically in output."true" "false"
Notes:
-
Supports VarResolver.DEFAULT (e.g.
"$C{myConfigVar}" ).
See Also:
- Returns:
- The annotation value.
- Default:
- ""
-
rank
int rankOptional rank for this config.Can be used to override default ordering and application of config annotations.
- Returns:
- The annotation value.
- Default:
- 0
-