| Modifier and Type | Method and Description |
|---|---|
Route |
Section.getNameAsRoute()
Returns the name of this section as a single-key route.
|
Route |
Section.getNameAsRoute()
Returns the name of this section as a single-key route.
|
Route |
Section.getRoute()
Returns the absolute route of this section (route to this section from the root
Section.getRoot()). |
Route |
Section.getRoute()
Returns the absolute route of this section (route to this section from the root
Section.getRoot()). |
Route |
Section.getSubRoute(Object key)
Returns sub-route for the specified key derived from this section's
route. |
Route |
Section.getSubRoute(Object key)
Returns sub-route for the specified key derived from this section's
route. |
| Modifier and Type | Method and Description |
|---|---|
Map<Route,Block<?>> |
Section.getRouteMappedBlocks(boolean deep)
Returns a complete map of route=block pairs; while not keeping any reference to this (or sub-) sections.
|
Map<Route,Block<?>> |
Section.getRouteMappedBlocks(boolean deep)
Returns a complete map of route=block pairs; while not keeping any reference to this (or sub-) sections.
|
Map<Route,Object> |
Section.getRouteMappedValues(boolean deep)
Returns a complete map of route=value pairs; while not keeping any reference to this (or sub-) sections.
|
Map<Route,Object> |
Section.getRouteMappedValues(boolean deep)
Returns a complete map of route=value pairs; while not keeping any reference to this (or sub-) sections.
|
Set<Route> |
Section.getRoutes(boolean deep)
Returns set of routes in this section; while not keeping any reference to this (or sub-) sections.
|
Set<Route> |
Section.getRoutes(boolean deep)
Returns set of routes in this section; while not keeping any reference to this (or sub-) sections.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
Section.contains(Route route)
Returns whether this section contains anything at the given route.
|
boolean |
Section.contains(Route route)
Returns whether this section contains anything at the given route.
|
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).
|
Object |
Section.get(Route route)
Returns the value of the block (the actual value - list, integer...) at the given route, or if it is a section,
the corresponding
Section instance. |
Object |
Section.get(Route route)
Returns the value of the block (the actual value - list, integer...) at the given route, or if it is a section,
the corresponding
Section instance. |
Object |
Section.get(Route route,
Object def)
Returns the value of the block (the actual value - list, integer...) at the given route, or if it is a section,
the corresponding
Section instance. |
Object |
Section.get(Route route,
Object def)
Returns the value of the block (the actual value - list, integer...) at the given route, or if it is a section,
the corresponding
Section instance. |
<T> T |
Section.getAs(Route route,
Class<T> clazz)
Returns the value of the block (the actual value) at the given route, or if it is a section, the corresponding
Section instance, in both cases cast to instance of the given class. |
<T> T |
Section.getAs(Route route,
Class<T> clazz)
Returns the value of the block (the actual value) at the given route, or if it is a section, the corresponding
Section instance, in both cases cast to instance of the given class. |
<T> T |
Section.getAs(Route route,
Class<T> clazz,
T def)
Returns the value of the block (the actual value) at the given route, or if it is a section, the corresponding
Section instance, in both cases cast to instance of the given class. |
<T> T |
Section.getAs(Route route,
Class<T> clazz,
T def)
Returns the value of the block (the actual value) at the given route, or if it is a section, the corresponding
Section instance, in both cases cast to instance of the given class. |
<T> Optional<T> |
Section.getAsOptional(Route route,
Class<T> clazz)
|
<T> Optional<T> |
Section.getAsOptional(Route route,
Class<T> clazz)
|
BigInteger |
Section.getBigInt(Route route)
Returns big integer at the given route.
|
BigInteger |
Section.getBigInt(Route route)
Returns big integer at the given route.
|
BigInteger |
Section.getBigInt(Route route,
BigInteger def)
Returns big integer at the given route.
|
BigInteger |
Section.getBigInt(Route route,
BigInteger def)
Returns big integer at the given route.
|
List<BigInteger> |
Section.getBigIntList(Route route)
Returns list of big integers at the given route.
|
List<BigInteger> |
Section.getBigIntList(Route route)
Returns list of big integers at the given route.
|
List<BigInteger> |
Section.getBigIntList(Route route,
List<BigInteger> def)
Returns list of big integers at the given route.
|
List<BigInteger> |
Section.getBigIntList(Route route,
List<BigInteger> def)
Returns list of big integers at the given route.
|
Block<?> |
Section.getBlock(Route route)
Returns the block encapsulated in the result of
Section.getOptionalBlock(Route). |
Block<?> |
Section.getBlock(Route route)
Returns the block encapsulated in the result of
Section.getOptionalBlock(Route). |
Boolean |
Section.getBoolean(Route route)
Returns boolean at the given route.
|
Boolean |
Section.getBoolean(Route route)
Returns boolean at the given route.
|
Boolean |
Section.getBoolean(Route route,
Boolean def)
Returns boolean at the given route.
|
Boolean |
Section.getBoolean(Route route,
Boolean def)
Returns boolean at the given route.
|
Byte |
Section.getByte(Route route)
Returns byte at the given route.
|
Byte |
Section.getByte(Route route)
Returns byte at the given route.
|
Byte |
Section.getByte(Route route,
Byte def)
Returns byte at the given route.
|
Byte |
Section.getByte(Route route,
Byte def)
Returns byte at the given route.
|
List<Byte> |
Section.getByteList(Route route)
Returns list of bytes at the given route.
|
List<Byte> |
Section.getByteList(Route route)
Returns list of bytes at the given route.
|
List<Byte> |
Section.getByteList(Route route,
List<Byte> def)
Returns list of bytes at the given route.
|
List<Byte> |
Section.getByteList(Route route,
List<Byte> def)
Returns list of bytes at the given route.
|
Double |
Section.getDouble(Route route)
Returns double at the given route.
|
Double |
Section.getDouble(Route route)
Returns double at the given route.
|
Double |
Section.getDouble(Route route,
Double def)
Returns double at the given route.
|
Double |
Section.getDouble(Route route,
Double def)
Returns double at the given route.
|
List<Double> |
Section.getDoubleList(Route route)
Returns list of doubles at the given route.
|
List<Double> |
Section.getDoubleList(Route route)
Returns list of doubles at the given route.
|
List<Double> |
Section.getDoubleList(Route route,
List<Double> def)
Returns list of doubles at the given route.
|
List<Double> |
Section.getDoubleList(Route route,
List<Double> def)
Returns list of doubles at the given route.
|
<T extends Enum<T>> |
Section.getEnum(Route route,
Class<T> clazz)
Returns enum at the given route.
|
<T extends Enum<T>> |
Section.getEnum(Route route,
Class<T> clazz)
Returns enum at the given route.
|
<T extends Enum<T>> |
Section.getEnum(Route route,
Class<T> clazz,
T def)
Returns enum at the given route.
|
<T extends Enum<T>> |
Section.getEnum(Route route,
Class<T> clazz,
T def)
Returns enum at the given route.
|
Float |
Section.getFloat(Route route)
Returns float at the given route.
|
Float |
Section.getFloat(Route route)
Returns float at the given route.
|
Float |
Section.getFloat(Route route,
Float def)
Returns float at the given route.
|
Float |
Section.getFloat(Route route,
Float def)
Returns float at the given route.
|
List<Float> |
Section.getFloatList(Route route)
Returns list of floats at the given route.
|
List<Float> |
Section.getFloatList(Route route)
Returns list of floats at the given route.
|
List<Float> |
Section.getFloatList(Route route,
List<Float> def)
Returns list of floats at the given route.
|
List<Float> |
Section.getFloatList(Route route,
List<Float> def)
Returns list of floats at the given route.
|
Character |
Section.getChar(Route route)
Returns char at the given route.
|
Character |
Section.getChar(Route route)
Returns char at the given route.
|
Character |
Section.getChar(Route route,
Character def)
Returns char at the given route.
|
Character |
Section.getChar(Route route,
Character def)
Returns char at the given route.
|
Integer |
Section.getInt(Route route)
Returns integer at the given route.
|
Integer |
Section.getInt(Route route)
Returns integer at the given route.
|
Integer |
Section.getInt(Route route,
Integer def)
Returns integer at the given route.
|
Integer |
Section.getInt(Route route,
Integer def)
Returns integer at the given route.
|
List<Integer> |
Section.getIntList(Route route)
Returns list of integers at the given route.
|
List<Integer> |
Section.getIntList(Route route)
Returns list of integers at the given route.
|
List<Integer> |
Section.getIntList(Route route,
List<Integer> def)
Returns list of integers at the given route.
|
List<Integer> |
Section.getIntList(Route route,
List<Integer> def)
Returns list of integers at the given route.
|
List<?> |
Section.getList(Route route)
Returns list at the given route.
|
List<?> |
Section.getList(Route route)
Returns list at the given route.
|
List<?> |
Section.getList(Route route,
List<?> def)
Returns list at the given route.
|
List<?> |
Section.getList(Route route,
List<?> def)
Returns list at the given route.
|
Long |
Section.getLong(Route route)
Returns long at the given route.
|
Long |
Section.getLong(Route route)
Returns long at the given route.
|
Long |
Section.getLong(Route route,
Long def)
Returns long at the given route.
|
Long |
Section.getLong(Route route,
Long def)
Returns long at the given route.
|
List<Long> |
Section.getLongList(Route route)
Returns list of longs at the given route.
|
List<Long> |
Section.getLongList(Route route)
Returns list of longs at the given route.
|
List<Long> |
Section.getLongList(Route route,
List<Long> def)
Returns list of longs at the given route.
|
List<Long> |
Section.getLongList(Route route,
List<Long> def)
Returns list of longs at the given route.
|
List<Map<?,?>> |
Section.getMapList(Route route)
Returns list of maps at the given route.
|
List<Map<?,?>> |
Section.getMapList(Route route)
Returns list of maps at the given route.
|
List<Map<?,?>> |
Section.getMapList(Route route,
List<Map<?,?>> def)
Returns list of maps at the given route.
|
List<Map<?,?>> |
Section.getMapList(Route route,
List<Map<?,?>> def)
Returns list of maps at the given route.
|
Number |
Section.getNumber(Route route)
Returns number at the given route.
|
Number |
Section.getNumber(Route route)
Returns number at the given route.
|
Number |
Section.getNumber(Route route,
Number def)
Returns number at the given route.
|
Number |
Section.getNumber(Route route,
Number def)
Returns number at the given route.
|
Optional<Object> |
Section.getOptional(Route route)
|
Optional<Object> |
Section.getOptional(Route route)
|
Optional<BigInteger> |
Section.getOptionalBigInt(Route route)
Returns big integer at the given route encapsulated in an instance of
Optional. |
Optional<BigInteger> |
Section.getOptionalBigInt(Route route)
Returns big integer at the given route encapsulated in an instance of
Optional. |
Optional<List<BigInteger>> |
Section.getOptionalBigIntList(Route route)
Returns list of big integers at the given route encapsulated in an instance of
Optional. |
Optional<List<BigInteger>> |
Section.getOptionalBigIntList(Route route)
Returns list of big integers at the given route encapsulated in an instance of
Optional. |
Optional<Block<?>> |
Section.getOptionalBlock(Route route)
Returns block at the given route encapsulated in an instance of
Optional. |
Optional<Block<?>> |
Section.getOptionalBlock(Route route)
Returns block at the given route encapsulated in an instance of
Optional. |
Optional<Boolean> |
Section.getOptionalBoolean(Route route)
Returns boolean at the given route encapsulated in an instance of
Optional. |
Optional<Boolean> |
Section.getOptionalBoolean(Route route)
Returns boolean at the given route encapsulated in an instance of
Optional. |
Optional<Byte> |
Section.getOptionalByte(Route route)
Returns byte at the given route encapsulated in an instance of
Optional. |
Optional<Byte> |
Section.getOptionalByte(Route route)
Returns byte at the given route encapsulated in an instance of
Optional. |
Optional<List<Byte>> |
Section.getOptionalByteList(Route route)
Returns list of bytes at the given route encapsulated in an instance of
Optional. |
Optional<List<Byte>> |
Section.getOptionalByteList(Route route)
Returns list of bytes at the given route encapsulated in an instance of
Optional. |
Optional<Double> |
Section.getOptionalDouble(Route route)
Returns double at the given route encapsulated in an instance of
Optional. |
Optional<Double> |
Section.getOptionalDouble(Route route)
Returns double at the given route encapsulated in an instance of
Optional. |
Optional<List<Double>> |
Section.getOptionalDoubleList(Route route)
Returns list of doubles at the given route encapsulated in an instance of
Optional. |
Optional<List<Double>> |
Section.getOptionalDoubleList(Route route)
Returns list of doubles at the given route encapsulated in an instance of
Optional. |
<T extends Enum<T>> |
Section.getOptionalEnum(Route route,
Class<T> clazz)
Returns enum at the given route encapsulated in an instance of
Optional. |
<T extends Enum<T>> |
Section.getOptionalEnum(Route route,
Class<T> clazz)
Returns enum at the given route encapsulated in an instance of
Optional. |
Optional<Float> |
Section.getOptionalFloat(Route route)
Returns float at the given route encapsulated in an instance of
Optional. |
Optional<Float> |
Section.getOptionalFloat(Route route)
Returns float at the given route encapsulated in an instance of
Optional. |
Optional<List<Float>> |
Section.getOptionalFloatList(Route route)
Returns list of floats at the given route encapsulated in an instance of
Optional. |
Optional<List<Float>> |
Section.getOptionalFloatList(Route route)
Returns list of floats at the given route encapsulated in an instance of
Optional. |
Optional<Character> |
Section.getOptionalChar(Route route)
Returns char at the given route encapsulated in an instance of
Optional. |
Optional<Character> |
Section.getOptionalChar(Route route)
Returns char at the given route encapsulated in an instance of
Optional. |
Optional<Integer> |
Section.getOptionalInt(Route route)
Returns number at the given route encapsulated in an instance of
Optional. |
Optional<Integer> |
Section.getOptionalInt(Route route)
Returns number at the given route encapsulated in an instance of
Optional. |
Optional<List<Integer>> |
Section.getOptionalIntList(Route route)
Returns list of integers at the given route encapsulated in an instance of
Optional. |
Optional<List<Integer>> |
Section.getOptionalIntList(Route route)
Returns list of integers at the given route encapsulated in an instance of
Optional. |
Optional<List<?>> |
Section.getOptionalList(Route route)
Returns list at the given route encapsulated in an instance of
Optional. |
Optional<List<?>> |
Section.getOptionalList(Route route)
Returns list at the given route encapsulated in an instance of
Optional. |
Optional<Long> |
Section.getOptionalLong(Route route)
Returns long at the given route encapsulated in an instance of
Optional. |
Optional<Long> |
Section.getOptionalLong(Route route)
Returns long at the given route encapsulated in an instance of
Optional. |
Optional<List<Long>> |
Section.getOptionalLongList(Route route)
Returns list of longs at the given route encapsulated in an instance of
Optional. |
Optional<List<Long>> |
Section.getOptionalLongList(Route route)
Returns list of longs at the given route encapsulated in an instance of
Optional. |
Optional<List<Map<?,?>>> |
Section.getOptionalMapList(Route route)
Returns list of maps at the given route encapsulated in an instance of
Optional. |
Optional<List<Map<?,?>>> |
Section.getOptionalMapList(Route route)
Returns list of maps at the given route encapsulated in an instance of
Optional. |
Optional<Number> |
Section.getOptionalNumber(Route route)
Returns number at the given route encapsulated in an instance of
Optional. |
Optional<Number> |
Section.getOptionalNumber(Route route)
Returns number 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(Route route)
Returns section at the given route encapsulated in an instance of
Optional. |
Optional<Short> |
Section.getOptionalShort(Route route)
Returns short at the given route encapsulated in an instance of
Optional. |
Optional<Short> |
Section.getOptionalShort(Route route)
Returns short at the given route encapsulated in an instance of
Optional. |
Optional<List<Short>> |
Section.getOptionalShortList(Route route)
Returns list of shorts at the given route encapsulated in an instance of
Optional. |
Optional<List<Short>> |
Section.getOptionalShortList(Route route)
Returns list of shorts at the given route encapsulated in an instance of
Optional. |
Optional<String> |
Section.getOptionalString(Route route)
Returns string at the given route encapsulated in an instance of
Optional. |
Optional<String> |
Section.getOptionalString(Route route)
Returns string at the given route encapsulated in an instance of
Optional. |
Optional<List<String>> |
Section.getOptionalStringList(Route route)
Returns list of strings at the given route encapsulated in an instance of
Optional. |
Optional<List<String>> |
Section.getOptionalStringList(Route route)
Returns list of strings 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. |
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.
|
Short |
Section.getShort(Route route)
Returns short at the given route.
|
Short |
Section.getShort(Route route)
Returns short at the given route.
|
Short |
Section.getShort(Route route,
Short def)
Returns short at the given route.
|
Short |
Section.getShort(Route route,
Short def)
Returns short at the given route.
|
List<Short> |
Section.getShortList(Route route)
Returns list of shorts at the given route.
|
List<Short> |
Section.getShortList(Route route)
Returns list of shorts at the given route.
|
List<Short> |
Section.getShortList(Route route,
List<Short> def)
Returns list of shorts at the given route.
|
List<Short> |
Section.getShortList(Route route,
List<Short> def)
Returns list of shorts at the given route.
|
String |
Section.getString(Route route)
Returns string at the given route.
|
String |
Section.getString(Route route)
Returns string at the given route.
|
String |
Section.getString(Route route,
String def)
Returns string at the given route.
|
String |
Section.getString(Route route,
String def)
Returns string at the given route.
|
List<String> |
Section.getStringList(Route route)
Returns list of strings at the given route.
|
List<String> |
Section.getStringList(Route route)
Returns list of strings at the given route.
|
List<String> |
Section.getStringList(Route route,
List<String> def)
Returns list of strings at the given route.
|
List<String> |
Section.getStringList(Route route,
List<String> def)
Returns list of strings at the given route.
|
<T> boolean |
Section.is(Route route,
Class<T> clazz)
Returns
true if and only value (list, integer... or Section) at the given route exists, and
it is an instance of the given class. |
<T> boolean |
Section.is(Route route,
Class<T> clazz)
Returns
true if and only value (list, integer... or Section) at the given route exists, and
it is an instance of the given class. |
boolean |
Section.isBigInt(Route route)
Returns
true if and only a value at the given route exists, and it is a BigInteger. |
boolean |
Section.isBigInt(Route route)
Returns
true if and only a value at the given route exists, and it is a BigInteger. |
boolean |
Section.isBoolean(Route route)
Returns
true if and only a value at the given route exists, and it is a Boolean (or the
primitive variant). |
boolean |
Section.isBoolean(Route route)
Returns
true if and only a value at the given route exists, and it is a Boolean (or the
primitive variant). |
boolean |
Section.isByte(Route route)
Returns
true if and only a value at the given route exists, and it is a Byte (or the
primitive variant). |
boolean |
Section.isByte(Route route)
Returns
true if and only a value at the given route exists, and it is a Byte (or the
primitive variant). |
boolean |
Section.isDecimal(Route route)
|
boolean |
Section.isDecimal(Route route)
|
boolean |
Section.isDouble(Route route)
Returns
true if and only a value at the given route exists, and it is a Double (or the
primitive variant). |
boolean |
Section.isDouble(Route route)
Returns
true if and only a value at the given route exists, and it is a Double (or the
primitive variant). |
<T extends Enum<T>> |
Section.isEnum(Route route,
Class<T> clazz)
Returns
true if and only a value at the given route exists, and it is an enum constant of T,
or object other than an enum whose string representation matches any of the constants
defined by T. |
<T extends Enum<T>> |
Section.isEnum(Route route,
Class<T> clazz)
Returns
true if and only a value at the given route exists, and it is an enum constant of T,
or object other than an enum whose string representation matches any of the constants
defined by T. |
boolean |
Section.isFloat(Route route)
Returns
true if and only a value at the given route exists, and it is a Float (or the
primitive variant). |
boolean |
Section.isFloat(Route route)
Returns
true if and only a value at the given route exists, and it is a Float (or the
primitive variant). |
boolean |
Section.isChar(Route route)
Returns
true if and only a value at the given route exists, and it is a Character, or any
other compatible type defined by Section.getOptionalChar(Route). |
boolean |
Section.isChar(Route route)
Returns
true if and only a value at the given route exists, and it is a Character, or any
other compatible type defined by Section.getOptionalChar(Route). |
boolean |
Section.isInt(Route route)
Returns
true if and only a value at the given route exists, and it is an Integer (or the
primitive variant). |
boolean |
Section.isInt(Route route)
Returns
true if and only a value at the given route exists, and it is an Integer (or the
primitive variant). |
boolean |
Section.isList(Route route)
Returns
true if and only a value at the given route exists, and it is a List. |
boolean |
Section.isList(Route route)
Returns
true if and only a value at the given route exists, and it is a List. |
boolean |
Section.isLong(Route route)
Returns
true if and only a value at the given route exists, and it is a Long (or the
primitive variant). |
boolean |
Section.isLong(Route route)
Returns
true if and only a value at the given route exists, and it is a Long (or the
primitive variant). |
boolean |
Section.isNumber(Route route)
Returns
true if and only a value at the given route exists, and it is an Number. |
boolean |
Section.isNumber(Route route)
Returns
true if and only a value at the given route exists, and it is an Number. |
boolean |
Section.isSection(Route route)
Returns
true if and only a value at the given route exists, and it is a Section. |
boolean |
Section.isSection(Route route)
Returns
true if and only a value at the given route exists, and it is a Section. |
boolean |
Section.isShort(Route route)
Returns
true if and only a value at the given route exists, and it is a Short (or the
primitive variant). |
boolean |
Section.isShort(Route route)
Returns
true if and only a value at the given route exists, and it is a Short (or the
primitive variant). |
boolean |
Section.isString(Route route)
Returns
true if and only a value at the given route exists, and it is a String. |
boolean |
Section.isString(Route route)
Returns
true if and only a value at the given route exists, and it is a String. |
Block<?> |
Section.move(Route source,
Route destination)
Moves a
block (comments and value) from the source to the destination route and returns the moved
instance, if any. |
Block<?> |
Section.move(Route source,
Route destination)
Moves a
block (comments and value) from the source to the destination route and returns the moved
instance, if any. |
boolean |
Section.remove(Route route)
Removes entry at the given route (if any); returns
true if successfully removed. |
boolean |
Section.remove(Route route)
Removes entry at the given route (if any); returns
true if successfully removed. |
void |
Section.set(Route route,
Object value)
Sets the given value at the given route in this section - overwrites the already existing value (if any).
|
void |
Section.set(Route route,
Object value)
Sets the given value at the given route in this section - overwrites the already existing value (if any).
|
| Modifier and Type | Method and Description |
|---|---|
void |
Section.setAll(Map<Route,Object> mappings)
Sets all the given mappings into this section in order as returned by the given map's iterator.
|
void |
Section.setAll(Map<Route,Object> mappings)
Sets all the given mappings into this section in order as returned by the given map's iterator.
|
| 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).
|
| Constructor and Description |
|---|
AutomaticVersioning(Pattern pattern,
Route route)
Creates automatically supplied versioning information.
|
AutomaticVersioning(Pattern pattern,
Route route)
Creates automatically supplied versioning information.
|
| Modifier and Type | Method and Description |
|---|---|
Route |
Route.add(Object key)
Adds the given
non-null key to the route and returns the new object. |
Route |
Route.add(Object key)
Adds the given
non-null key to the route and returns the new object. |
static Route |
Route.addTo(Route route,
Object key)
Adds the given
non-null key to the route and returns the new object, if the route is
null, creates and returns a single key route containing only the key. |
static Route |
Route.addTo(Route route,
Object key)
Adds the given
non-null key to the route and returns the new object, if the route is
null, creates and returns a single key route containing only the key. |
Route |
RouteFactory.create(String route)
Constructs a route by splitting the given string route by the
factory's separator. |
Route |
RouteFactory.create(String route)
Constructs a route by splitting the given string route by the
factory's separator. |
static Route |
Route.from(Object... route)
Constructs a route from the given non-null keys.
|
static Route |
Route.from(Object... route)
Constructs a route from the given non-null keys.
|
static Route |
Route.from(Object key)
Constructs a route from the given non-null key.
|
static Route |
Route.from(Object key)
Constructs a route from the given non-null key.
|
static Route |
Route.fromSingleKey(Object key)
Constructs a route from the given non-null key.
|
static Route |
Route.fromSingleKey(Object key)
Constructs a route from the given non-null key.
|
static Route |
Route.fromString(String route)
Constructs a route by splitting the given string route by
GeneralSettings.DEFAULT_ROUTE_SEPARATOR. |
static Route |
Route.fromString(String route)
Constructs a route by splitting the given string route by
GeneralSettings.DEFAULT_ROUTE_SEPARATOR. |
static Route |
Route.fromString(String route,
char separator)
Constructs a route by splitting the given string route by the provided separator.
|
static Route |
Route.fromString(String route,
char separator)
Constructs a route by splitting the given string route by the provided separator.
|
static Route |
Route.fromString(String route,
RouteFactory routeFactory)
Constructs a route by splitting the given string route by the provided factory's
separator. |
static Route |
Route.fromString(String route,
RouteFactory routeFactory)
Constructs a route by splitting the given string route by the provided factory's
separator. |
Route |
Route.parent()
Returns the parent route of this one.
|
Route |
Route.parent()
Returns the parent route of this one.
|
| Modifier and Type | Method and Description |
|---|---|
static Route |
Route.addTo(Route route,
Object key)
Adds the given
non-null key to the route and returns the new object, if the route is
null, creates and returns a single key route containing only the key. |
static Route |
Route.addTo(Route route,
Object key)
Adds the given
non-null key to the route and returns the new object, if the route is
null, creates and returns a single key route containing only the key. |
| Modifier and Type | Class and Description |
|---|---|
class |
MultiKeyRoute
Represents a multi-key route.
|
class |
SingleKeyRoute
Represents a single-key route.
|
| Modifier and Type | Method and Description |
|---|---|
Route |
MultiKeyRoute.add(Object key) |
Route |
SingleKeyRoute.add(Object key) |
Route |
SingleKeyRoute.add(Object key) |
Route |
MultiKeyRoute.add(Object key) |
Route |
MultiKeyRoute.parent() |
Route |
SingleKeyRoute.parent() |
Route |
SingleKeyRoute.parent() |
Route |
MultiKeyRoute.parent() |
| Modifier and Type | Method and Description |
|---|---|
Set<Route> |
UpdaterSettings.getIgnoredRoutes(String versionId,
char separator)
Returns which routes to ignore if updating to the specified version ID.
|
Set<Route> |
UpdaterSettings.getIgnoredRoutes(String versionId,
char separator)
Returns which routes to ignore if updating to the specified version ID.
|
Map<Route,ValueMapper> |
UpdaterSettings.getMappers(String versionId,
char separator)
Returns mappers to apply at the given version ID.
|
Map<Route,ValueMapper> |
UpdaterSettings.getMappers(String versionId,
char separator)
Returns mappers to apply at the given version ID.
|
Map<Route,Route> |
UpdaterSettings.getRelocations(String versionId,
char separator)
Returns relocations (in
from route = to route format) that took effect at the given version ID. |
Map<Route,Route> |
UpdaterSettings.getRelocations(String versionId,
char separator)
Returns relocations (in
from route = to route format) that took effect at the given version ID. |
Map<Route,Route> |
UpdaterSettings.getRelocations(String versionId,
char separator)
Returns relocations (in
from route = to route format) that took effect at the given version ID. |
Map<Route,Route> |
UpdaterSettings.getRelocations(String versionId,
char separator)
Returns relocations (in
from route = to route format) that took effect at the given version ID. |
| Modifier and Type | Method and Description |
|---|---|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addIgnoredRoute(String versionId,
Route route)
Adds a route to ignore if updating to the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addIgnoredRoute(String versionId,
Route route)
Adds a route to ignore if updating to the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addMapper(String versionId,
Route route,
ValueMapper mapper)
Adds a mapper to apply to the given route at the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addMapper(String versionId,
Route route,
ValueMapper mapper)
Adds a mapper to apply to the given route at the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocation(String versionId,
Route fromRoute,
Route toRoute)
Adds a relocation that took effect at the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocation(String versionId,
Route fromRoute,
Route toRoute)
Adds a relocation that took effect at the provided version ID.
|
default Object |
ValueMapper.map(Section section,
Route key) |
default Object |
ValueMapper.map(Section section,
Route key) |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setVersioning(Pattern pattern,
Route route)
Sets versioning information.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.setVersioning(Pattern pattern,
Route route)
Sets versioning information.
|
| Modifier and Type | Method and Description |
|---|---|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addIgnoredRoutes(Map<String,Set<Route>> routes)
Adds routes to ignore if updating to a certain version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addIgnoredRoutes(Map<String,Set<Route>> routes)
Adds routes to ignore if updating to a certain version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addIgnoredRoutes(String versionId,
Set<Route> routes)
Adds routes to ignore if updating to the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addIgnoredRoutes(String versionId,
Set<Route> routes)
Adds routes to ignore if updating to the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addMappers(Map<String,Map<Route,ValueMapper>> mappers)
Adds mappers to apply to their respective routes, per version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addMappers(Map<String,Map<Route,ValueMapper>> mappers)
Adds mappers to apply to their respective routes, per version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addMappers(String versionId,
Map<Route,ValueMapper> mappers)
Adds mappers to apply to their respective routes at the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addMappers(String versionId,
Map<Route,ValueMapper> mappers)
Adds mappers to apply to their respective routes at the provided version ID.
|
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(Map<String,Map<Route,Route>> relocations)
Adds relocations (in
from route = to route format) per version ID, at which they took effect. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(Map<String,Map<Route,Route>> relocations)
Adds relocations (in
from route = to route format) per version ID, at which they took effect. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(Map<String,Map<Route,Route>> relocations)
Adds relocations (in
from route = to route format) per version ID, at which they took effect. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(Map<String,Map<Route,Route>> relocations)
Adds relocations (in
from route = to route format) per version ID, at which they took effect. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(String versionId,
Map<Route,Route> relocations)
Adds relocations (in
from route = to route format) that took effect at the provided version ID. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(String versionId,
Map<Route,Route> relocations)
Adds relocations (in
from route = to route format) that took effect at the provided version ID. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(String versionId,
Map<Route,Route> relocations)
Adds relocations (in
from route = to route format) that took effect at the provided version ID. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.addRelocations(String versionId,
Map<Route,Route> relocations)
Adds relocations (in
from route = to route format) that took effect at the provided version ID. |
static ValueMapper |
ValueMapper.section(BiFunction<Section,Route,Object> mapper) |
static ValueMapper |
ValueMapper.section(BiFunction<Section,Route,Object> mapper) |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setIgnoredRoutes(Map<String,Set<Route>> routes)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setIgnoredRoutes(Map<String,Set<Route>> routes)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setIgnoredRoutes(String versionId,
Set<Route> routes)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setIgnoredRoutes(String versionId,
Set<Route> routes)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(Map<String,Map<Route,Route>> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(Map<String,Map<Route,Route>> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(Map<String,Map<Route,Route>> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(Map<String,Map<Route,Route>> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(String versionId,
Map<Route,Route> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(String versionId,
Map<Route,Route> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(String versionId,
Map<Route,Route> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
UpdaterSettings.Builder |
UpdaterSettings.Builder.setRelocations(String versionId,
Map<Route,Route> relocations)
Deprecated.
Method with confusing name, use
addX() instead of setX(). Subject for
removal. |
| Modifier and Type | Method and Description |
|---|---|
static void |
Relocator.apply(Section section,
Map<Route,Route> relocations)
Applies the provided relocations to the given section.
|
static void |
Relocator.apply(Section section,
Map<Route,Route> relocations)
Applies the provided relocations to the given section.
|
static void |
Relocator.apply(Section section,
Map<Route,Route> relocations)
Applies the provided relocations to the given section.
|
static void |
Relocator.apply(Section section,
Map<Route,Route> relocations)
Applies the provided relocations to the given section.
|
static void |
Mapper.apply(Section section,
Map<Route,ValueMapper> mappers)
Applies the provided mappers to the given section.
|
static void |
Mapper.apply(Section section,
Map<Route,ValueMapper> mappers)
Applies the provided mappers to the given section.
|
Copyright © 2024. All rights reserved.