Interface ConfigurationTransformation
- All Known Subinterfaces:
ConfigurationTransformation.Versioned
- All Known Implementing Classes:
DataFixerTransformation
,DataFixerTransformation
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Represents a set of transformations on a configuration.
- Since:
- 4.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
Builds a basicConfigurationTransformation
.static interface
A transformation that is aware of node versions.static final class
Builds a versionedConfigurationTransformation
. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Object
A special object that represents a wildcard in a path provided to a configuration transformer. -
Method Summary
Modifier and TypeMethodDescriptionvoid
apply
(ConfigurationNode node) Apply this transformation to a given node.builder()
Create a new builder to create a basic configuration transformation.static ConfigurationTransformation
chain
(ConfigurationTransformation... transformations) Creates a chain ofConfigurationTransformation
s.static ConfigurationTransformation
empty()
Get an empty transformation.This creates a builder for versioned transformations.
-
Field Details
-
WILDCARD_OBJECT
A special object that represents a wildcard in a path provided to a configuration transformer.- Since:
- 4.0.0
-
-
Method Details
-
empty
Get an empty transformation.This transformation will perform no actions.
- Returns:
- empty transformation
- Since:
- 4.0.0
-
builder
Create a new builder to create a basic configuration transformation.- Returns:
- a new transformation builder.
- Since:
- 4.0.0
-
versionedBuilder
This creates a builder for versioned transformations.- Returns:
- a new builder for versioned transformations
- Since:
- 4.0.0
-
chain
Creates a chain ofConfigurationTransformation
s.- Parameters:
transformations
- the transformations- Returns:
- a new transformation chain
- Since:
- 4.0.0
-
apply
Apply this transformation to a given node.- Parameters:
node
- the target node- Throws:
ConfigurateException
- Since:
- 4.0.0
-