Enum Class License

java.lang.Object
java.lang.Enum<License>
org.gnome.gtk.License
All Implemented Interfaces:
Serializable, Comparable<License>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum License extends Enum<License> implements Enumeration

The type of license for an application.

This enumeration can be expanded at later date.

  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Zero-Clause BSD license
    The GNU Affero General Public License, version 3.0 or later
    The GNU Affero General Public License, version 3.0 only
    The Apache License, version 2.0
    The Artistic License, version 2.0
    The BSD standard license
    The 3-clause BSD licence
    A license text is going to be specified by the developer
    The GNU General Public License, version 2.0 or later
    The GNU General Public License, version 2.0 only
    The GNU General Public License, version 3.0 or later
    The GNU General Public License, version 3.0 only
    The GNU Lesser General Public License, version 2.1 or later
    The GNU Lesser General Public License, version 2.1 only
    The GNU Lesser General Public License, version 3.0 or later
    The GNU Lesser General Public License, version 3.0 only
    The MIT/X11 standard license
    The Mozilla Public License, version 2.0
    No license specified
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the License class.
    int
    Get the numeric value of this enum
    static License
    of(int value)
    Create a new License for the provided value
    static License
    of(MemorySegment address)
    Create a new License for the value in the provided memory address.
    static License
    Returns the enum constant of this class with the specified name.
    static License[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • UNKNOWN

      public static final License UNKNOWN
      No license specified
    • CUSTOM

      public static final License CUSTOM
      A license text is going to be specified by the developer
    • GPL_2_0

      public static final License GPL_2_0
      The GNU General Public License, version 2.0 or later
    • GPL_3_0

      public static final License GPL_3_0
      The GNU General Public License, version 3.0 or later
    • LGPL_2_1

      public static final License LGPL_2_1
      The GNU Lesser General Public License, version 2.1 or later
    • LGPL_3_0

      public static final License LGPL_3_0
      The GNU Lesser General Public License, version 3.0 or later
    • BSD

      public static final License BSD
      The BSD standard license
    • MIT_X11

      public static final License MIT_X11
      The MIT/X11 standard license
    • ARTISTIC

      public static final License ARTISTIC
      The Artistic License, version 2.0
    • GPL_2_0_ONLY

      public static final License GPL_2_0_ONLY
      The GNU General Public License, version 2.0 only
    • GPL_3_0_ONLY

      public static final License GPL_3_0_ONLY
      The GNU General Public License, version 3.0 only
    • LGPL_2_1_ONLY

      public static final License LGPL_2_1_ONLY
      The GNU Lesser General Public License, version 2.1 only
    • LGPL_3_0_ONLY

      public static final License LGPL_3_0_ONLY
      The GNU Lesser General Public License, version 3.0 only
    • AGPL_3_0

      public static final License AGPL_3_0
      The GNU Affero General Public License, version 3.0 or later
    • AGPL_3_0_ONLY

      public static final License AGPL_3_0_ONLY
      The GNU Affero General Public License, version 3.0 only
    • BSD_3

      public static final License BSD_3
      The 3-clause BSD licence
    • APACHE_2_0

      public static final License APACHE_2_0
      The Apache License, version 2.0
    • MPL_2_0

      public static final License MPL_2_0
      The Mozilla Public License, version 2.0
    • _0BSD

      public static final License _0BSD
      Zero-Clause BSD license
  • Method Details

    • values

      public static License[] 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 License 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
    • of

      public static License of(int value)
      Create a new License for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static License of(MemorySegment address)
      Create a new License for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the License class.
      Returns:
      the GType