Class DiffConfig.Builder

java.lang.Object
eu.maveniverse.domtrip.DiffConfig.Builder
Enclosing class:
DiffConfig

public static class DiffConfig.Builder extends Object
Builder for DiffConfig.
Since:
1.3.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • matchBy

      public DiffConfig.Builder matchBy(String elementName, 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 wildcard
      keyAttributes - the attribute or child element names that form the identity
      Returns:
      this builder
    • build

      public DiffConfig build()
      Builds the configuration.
      Returns:
      the built configuration