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 classBuilds a basicConfigurationTransformation.static interfaceA transformation that is aware of node versions.static final classBuilds a versionedConfigurationTransformation. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObjectA special object that represents a wildcard in a path provided to a configuration transformer. -
Method Summary
Modifier and TypeMethodDescriptionvoidapply(ConfigurationNode node) Apply this transformation to a given node.builder()Create a new builder to create a basic configuration transformation.static ConfigurationTransformationchain(ConfigurationTransformation... transformations) Creates a chain ofConfigurationTransformations.static ConfigurationTransformationempty()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 ofConfigurationTransformations.- 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
-