Class KarmaUpdaterGenerator

java.lang.Object
ml.karmaconfigs.api.common.version.util.KarmaUpdaterGenerator

public final class KarmaUpdaterGenerator extends Object
Karma update file generator
  • Constructor Details

    • KarmaUpdaterGenerator

      public KarmaUpdaterGenerator(KarmaSource owner)
      Initialize the karma update file generator
      Parameters:
      owner - the file source
  • Method Details

    • addChangelog

      public void addChangelog(String... changelog)
      Add a line to the changelog
      Parameters:
      changelog - the changelog lines
    • addChangelog

      public void addChangelog(List<String> changelog)
      Add the lines to the changelog
      Parameters:
      changelog - the changelog lines
    • removeChangelog

      public void removeChangelog(int... indexes)
      Remove the changelog lines
      Parameters:
      indexes - the indexes to remove
    • clearChangelog

      public void clearChangelog()
      Clear the changelog
    • setChangelog

      public void setChangelog(String... changelog)
      Set the changelog
      Parameters:
      changelog - the changelog
    • setChangelog

      public void setChangelog(List<String> changelog)
      Set the changelog
      Parameters:
      changelog - the changelog
    • setUpdateURL

      public void setUpdateURL(URL url)
      Set the update URL
      Parameters:
      url - the url
    • generate

      public KarmaFile generate(String name)
      Generate the file
      Parameters:
      name - the file name
      Returns:
      the generated file