Interface GenesisAddonStorage

All Known Implementing Classes:
GenesisAddonConfig

public interface GenesisAddonStorage
  • Field Details

  • Method Details

    • set

      void set(String path, Object value)
      Set the path for the config
      Parameters:
      path - path
      value - value
    • getString

      String getString(String path, String def)
      Get a string from the config
      Parameters:
      path - path
      def - default
      Returns:
      string
    • getInt

      int getInt(String path, int def)
      Get an int from the config
      Parameters:
      path - path
      def - default
      Returns:
      int
    • getDouble

      double getDouble(String path, double def)
      Get a double from the config
      Parameters:
      path - path
      def - default
      Returns:
      double
    • getBoolean

      boolean getBoolean(String path, boolean def)
      Get a boolean from the config
      Parameters:
      path - path
      def - default
      Returns:
      boolean
    • getStringList

      List<String> getStringList(String path)
      Get a list of strings from the config
      Parameters:
      path - path
      Returns:
      list of strings
    • containsPath

      boolean containsPath(String key)
      Check if a config contains a path
      Parameters:
      key - path
      Returns:
      contains or not
    • listKeys

      Set<String> listKeys(String section, boolean deep)
      List of keys from config
      Parameters:
      section - path
      deep - subkeys or not
      Returns:
      list of keys
    • deleteAll

      void deleteAll(String section)
      Delete all parts from a section
      Parameters:
      section - the section to delete
    • save

      boolean save()
      Save the addon
      Returns:
      saved or not
    • saveAsync

      void saveAsync()
      Save the addon async
    • pasteContentFrom

      boolean pasteContentFrom(GenesisAddonStorage source)
      Copies from file to new file
      Parameters:
      source - the file to copy from
      Returns:
      new addon storage file