| Package | Description |
|---|---|
| dev.dejvokep.boostedyaml | |
| dev.dejvokep.boostedyaml.block.implementation | |
| dev.dejvokep.boostedyaml.dvs.versioning | |
| dev.dejvokep.boostedyaml.updater |
| Modifier and Type | Class and Description |
|---|---|
class |
YamlDocument
Represents a YAML document.
|
| Modifier and Type | Method and Description |
|---|---|
Section |
Section.createSection(Route route)
Creates sections along the whole route, including the route itself and returns the section created at the end (at
the route given).
|
Section |
Section.createSection(Route route)
Creates sections along the whole route, including the route itself and returns the section created at the end (at
the route given).
|
Section |
Section.createSection(String route)
Creates sections along the whole route, including the route itself and returns the section created at the end (at
the route given).
|
Section |
Section.createSection(String route)
Creates sections along the whole route, including the route itself and returns the section created at the end (at
the route given).
|
Section |
Section.getDefaults()
Returns equivalent of this section in the defaults.
|
Section |
Section.getDefaults()
Returns equivalent of this section in the defaults.
|
Section |
Section.getParent()
Returns the parent section, or
null if this section has no parent - the section is also the root
(check isRoot()). |
Section |
Section.getParent()
Returns the parent section, or
null if this section has no parent - the section is also the root
(check isRoot()). |
Section |
Section.getSection(Route route)
Returns section at the given route.
|
Section |
Section.getSection(Route route)
Returns section at the given route.
|
Section |
Section.getSection(Route route,
Section def)
Returns section at the given route.
|
Section |
Section.getSection(Route route,
Section def)
Returns section at the given route.
|
Section |
Section.getSection(String route)
Returns section at the given route.
|
Section |
Section.getSection(String route)
Returns section at the given route.
|
Section |
Section.getSection(String route,
Section def)
Returns section at the given route.
|
Section |
Section.getSection(String route,
Section def)
Returns section at the given route.
|
| Modifier and Type | Method and Description |
|---|---|
Optional<Section> |
Section.getOptionalSection(Route route)
Returns section at the given route encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getOptionalSection(Route route)
Returns section at the given route encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getOptionalSection(String route)
Returns section at the given route encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getOptionalSection(String route)
Returns section at the given route encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getParent(Route route)
Returns section at the parent route of the given one, encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getParent(Route route)
Returns section at the parent route of the given one, encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getParent(String route)
Returns section at the parent route of the given one, encapsulated in an instance of
Optional. |
Optional<Section> |
Section.getParent(String route)
Returns section at the parent route of the given one, encapsulated in an instance of
Optional. |
| Modifier and Type | Method and Description |
|---|---|
Section |
Section.getSection(Route route,
Section def)
Returns section at the given route.
|
Section |
Section.getSection(Route route,
Section def)
Returns section at the given route.
|
Section |
Section.getSection(String route,
Section def)
Returns section at the given route.
|
Section |
Section.getSection(String route,
Section def)
Returns section at the given route.
|
| Constructor and Description |
|---|
Section(YamlDocument root,
Section parent,
Route route,
Block<?> previous,
Map<?,?> mappings)
Creates a section using the given relatives, previous block and mappings.
|
Section(YamlDocument root,
Section parent,
Route route,
Block<?> previous,
Map<?,?> mappings)
Creates a section using the given relatives, previous block and mappings.
|
Section(YamlDocument root,
Section parent,
Route route,
org.snakeyaml.engine.v2.nodes.Node keyNode,
org.snakeyaml.engine.v2.nodes.MappingNode valueNode,
ExtendedConstructor constructor)
Creates a section using the given relatives, nodes and constructor, which is used to retrieve the actual Java
representations of nodes (and sub-nodes).
|
Section(YamlDocument root,
Section parent,
Route route,
org.snakeyaml.engine.v2.nodes.Node keyNode,
org.snakeyaml.engine.v2.nodes.MappingNode valueNode,
ExtendedConstructor constructor)
Creates a section using the given relatives, nodes and constructor, which is used to retrieve the actual Java
representations of nodes (and sub-nodes).
|
| Modifier and Type | Method and Description |
|---|---|
Version |
AutomaticVersioning.getDocumentVersion(Section document,
boolean defaults) |
Version |
ManualVersioning.getDocumentVersion(Section document,
boolean defaults) |
Version |
Versioning.getDocumentVersion(Section document,
boolean defaults)
Returns version of the given document (section).
|
Version |
Versioning.getDocumentVersion(Section document,
boolean defaults)
Returns version of the given document (section).
|
Version |
ManualVersioning.getDocumentVersion(Section document,
boolean defaults) |
Version |
AutomaticVersioning.getDocumentVersion(Section document,
boolean defaults) |
void |
AutomaticVersioning.updateVersionID(Section updated,
Section def) |
default void |
Versioning.updateVersionID(Section updated,
Section def)
Sets version ID of the default section into the updated section content.
|
default void |
Versioning.updateVersionID(Section updated,
Section def)
Sets version ID of the default section into the updated section content.
|
void |
AutomaticVersioning.updateVersionID(Section updated,
Section def) |
| Modifier and Type | Method and Description |
|---|---|
static void |
Merger.merge(Section document,
Section defaults,
UpdaterSettings settings)
Merges the given document with the defaults.
|
static void |
Merger.merge(Section document,
Section defaults,
UpdaterSettings settings)
Merges the given document with the defaults.
|
static void |
Updater.update(Section document,
Section defaults,
UpdaterSettings updaterSettings,
GeneralSettings generalSettings)
Updates the given document against the given defaults and settings.
|
static void |
Updater.update(Section document,
Section defaults,
UpdaterSettings updaterSettings,
GeneralSettings generalSettings)
Updates the given document against the given defaults and settings.
|
| Constructor and Description |
|---|
Relocator(Section section,
Version documentVersion,
Version defaultsVersion)
Initializes the relocator with the given section and document versions.
|
Relocator(Section section,
Version documentVersion,
Version defaultsVersion)
Initializes the relocator with the given section and document versions.
|
Copyright © 2022. All rights reserved.