Class Resolution

java.lang.Object
org.apache.maven.api.plugin.descriptor.Resolution
All Implemented Interfaces:
Serializable

@Experimental @Generated @ThreadSafe @Immutable public class Resolution extends Object implements Serializable
Dependency collection or resolution injection.
See Also:
  • Constructor Details

  • Method Details

    • getField

      public String getField()
      the name of the field to be injected
      Returns:
      a String
    • getPathScope

      public String getPathScope()
      pathScope used to flatten dependencies
      Returns:
      a String
    • getRequestType

      public String getRequestType()
      either collect, flatten, or resolve
      Returns:
      a String
    • with

      Creates a new builder with this object as the basis.
      Returns:
      a Builder
    • withField

      @Nonnull public Resolution withField(String field)
      Creates a new Resolution instance using the specified field.
      Parameters:
      field - the new String to use
      Returns:
      a Resolution with the specified field
    • withPathScope

      @Nonnull public Resolution withPathScope(String pathScope)
      Creates a new Resolution instance using the specified pathScope.
      Parameters:
      pathScope - the new String to use
      Returns:
      a Resolution with the specified pathScope
    • withRequestType

      @Nonnull public Resolution withRequestType(String requestType)
      Creates a new Resolution instance using the specified requestType.
      Parameters:
      requestType - the new String to use
      Returns:
      a Resolution with the specified requestType
    • newInstance

      @Nonnull public static Resolution newInstance()
      Creates a new Resolution instance. Equivalent to newInstance(true).
      Returns:
      a new Resolution
      See Also:
    • newInstance

      @Nonnull public static Resolution newInstance(boolean withDefaults)
      Creates a new Resolution instance using default values or not. Equivalent to newBuilder(withDefaults).build().
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Resolution
    • newBuilder

      @Nonnull public static Resolution.Builder newBuilder()
      Creates a new Resolution builder instance. Equivalent to newBuilder(true).
      Returns:
      a new Builder
      See Also:
    • newBuilder

      @Nonnull public static Resolution.Builder newBuilder(boolean withDefaults)
      Creates a new Resolution builder instance using default values or not.
      Parameters:
      withDefaults - the boolean indicating whether default values should be used
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static Resolution.Builder newBuilder(Resolution from)
      Creates a new Resolution builder instance using the specified object as a basis. Equivalent to newBuilder(from, false).
      Parameters:
      from - the Resolution instance to use as a basis
      Returns:
      a new Builder
    • newBuilder

      @Nonnull public static Resolution.Builder newBuilder(Resolution from, boolean forceCopy)
      Creates a new Resolution builder instance using the specified object as a basis.
      Parameters:
      from - the Resolution instance to use as a basis
      forceCopy - the boolean indicating if a copy should be forced
      Returns:
      a new Builder