Class ProjectModelFactory

java.lang.Object
io.codemodder.plugins.maven.operator.ProjectModelFactory

public class ProjectModelFactory extends Object
Builder Object for creating instances of the ProjectModel class, which represent the input parameters for chain operations.
  • Method Details

    • withPomFile

      public ProjectModelFactory withPomFile(POMDocument pomFile)
      Fluent Setter
      Parameters:
      pomFile - POM File
    • withParentPomFiles

      public ProjectModelFactory withParentPomFiles(Collection<POMDocument> parentPomFiles)
      Fluent Setter
      Parameters:
      parentPomFiles - Parent POM Files
    • withDependency

      public ProjectModelFactory withDependency(Dependency dep)
      Fluent Setter
      Parameters:
      dep - dependency
    • withSkipIfNewer

      public ProjectModelFactory withSkipIfNewer(boolean skipIfNewer)
      Fluent Setter
    • withUseProperties

      public ProjectModelFactory withUseProperties(boolean useProperties)
      Fluent Setter
    • withActiveProfiles

      public ProjectModelFactory withActiveProfiles(String... activeProfiles)
      Fluent Setter
    • withOverrideIfAlreadyExists

      public ProjectModelFactory withOverrideIfAlreadyExists(boolean overrideIfAlreadyExists)
      Fluent Setter
    • withQueryType

      public ProjectModelFactory withQueryType(QueryType queryType)
      Fluent Setter
      Parameters:
      queryType - query type
    • withRepositoryPath

      public ProjectModelFactory withRepositoryPath(File repositoryPath)
      Fluent Setter
      Parameters:
      repositoryPath - Repository Path
    • withOffline

      public ProjectModelFactory withOffline(boolean offline)
      Fluent Setter
      Parameters:
      offline - Offline
    • build

      public ProjectModel build()
      Build and return a ProjectModel instance based on the configured parameters.
      Returns:
      A ProjectModel instance with the specified configuration.