Class BuildDefinition

java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.BuildDefinition

public class BuildDefinition extends Object
Inputs that define the build: the build type, external and internal parameters, and resolved dependencies.

Specifies everything that influenced the build output. Together with RunDetails, it forms the complete Provenance record.

Since:
1.10.0
See Also:
  • Field Details

  • Constructor Details

    • BuildDefinition

      public BuildDefinition()
      Creates a new BuildDefinition instance with the default build type.
    • BuildDefinition

      public BuildDefinition(String buildType, Map<String,Object> externalParameters)
      Creates a new BuildDefinition with the given build type and external parameters.
      Parameters:
      buildType - URI indicating what type of build was performed.
      externalParameters - inputs passed to the build.
  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getBuildType

      public String getBuildType()
      Gets the URI indicating what type of build was performed.

      Determines the meaning of externalParameters and internalParameters.

      Returns:
      The build type URI.
    • getExternalParameters

      Gets the inputs passed to the build, such as command-line arguments or environment variables.
      Returns:
      The external parameters map, or null if not set.
    • getInternalParameters

      Gets the parameters set by the build platform.
      Returns:
      The internal parameters map, or null if not set.
    • getResolvedDependencies

      Gets the materials that influenced the build.

      The dependency list is considered incomplete unless resolved materials are present.

      Returns:
      The list of resolved dependencies, or null if not set.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setBuildType

      public BuildDefinition setBuildType(String buildType)
      Sets the URI indicating what type of build was performed.
      Parameters:
      buildType - The build type URI.
      Returns:
      this for chaining.
    • setExternalParameters

      public BuildDefinition setExternalParameters(Map<String,Object> externalParameters)
      Sets the inputs passed to the build.
      Parameters:
      externalParameters - The external parameters map.
      Returns:
      this for chaining.
    • setInternalParameters

      public BuildDefinition setInternalParameters(Map<String,Object> internalParameters)
      Sets the parameters set by the build platform.
      Parameters:
      internalParameters - The internal parameters map.
      Returns:
      this for chaining.
    • setResolvedDependencies

      Sets the materials that influenced the build.
      Parameters:
      resolvedDependencies - The list of resolved dependencies.
      Returns:
      this for chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object