Enum Class PackageApplicationTask.PackageType

java.lang.Object
java.lang.Enum<PackageApplicationTask.PackageType>
io.inverno.tool.buildtools.PackageApplicationTask.PackageType
All Implemented Interfaces:
Serializable, Comparable<PackageApplicationTask.PackageType>, Constable
Enclosing interface:
PackageApplicationTask

public static enum PackageApplicationTask.PackageType extends Enum<PackageApplicationTask.PackageType>

The types of package that the task can generate.

These types are platform specific and requires the task to run on corresponding operating systems.

Since:
1.4
Author:
Jeremy Kuhn
  • Enum Constant Details

  • Method Details

    • values

      public static PackageApplicationTask.PackageType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PackageApplicationTask.PackageType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFormat

      public String getFormat()

      Returns the file format of file extension corresponding to the package type.

      Returns:
      a fileformat
    • fromFormat

      public static PackageApplicationTask.PackageType fromFormat(String format)

      Returns the package type corresponding to the specified file format.

      Parameters:
      format - a file format
      Returns:
      a package type
      Throws:
      IllegalArgumentException - if the specified file format does correspond to any supported package type