Package eu.maveniverse.domtrip
Class DiffConfig.Builder
- java.lang.Object
-
- eu.maveniverse.domtrip.DiffConfig.Builder
-
- Enclosing class:
- DiffConfig
public static class DiffConfig.Builder extends java.lang.ObjectBuilder forDiffConfig.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DiffConfigbuild()Builds the configuration.DiffConfig.BuildermatchBy(java.lang.String elementName, java.lang.String... keyAttributes)Configures match keys for an element name.
-
-
-
Method Detail
-
matchBy
public DiffConfig.Builder matchBy(java.lang.String elementName, java.lang.String... keyAttributes)
Configures match keys for an element name. Use"*"as the element name for a wildcard that applies to all elements without specific keys.Keys can refer to child element names (e.g.,
"groupId"for Maven dependencies) or attribute names (e.g.,"id").- Parameters:
elementName- the element name, or"*"for wildcardkeyAttributes- the attribute or child element names that form the identity- Returns:
- this builder
-
build
public DiffConfig build()
Builds the configuration.- Returns:
- the built configuration
-
-