Package org.gnome.gtk
Enum Class License
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<License>
,Constable
@Generated("io.github.jwharm.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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionZero-Clause BSD licenseThe GNU Affero General Public License, version 3.0 or laterThe GNU Affero General Public License, version 3.0 onlyThe Apache License, version 2.0The Artistic License, version 2.0The BSD standard licenseThe 3-clause BSD licenceA license text is going to be specified by the developerThe GNU General Public License, version 2.0 or laterThe GNU General Public License, version 2.0 onlyThe GNU General Public License, version 3.0 or laterThe GNU General Public License, version 3.0 onlyThe GNU Lesser General Public License, version 2.1 or laterThe GNU Lesser General Public License, version 2.1 onlyThe GNU Lesser General Public License, version 3.0 or laterThe GNU Lesser General Public License, version 3.0 onlyThe MIT/X11 standard licenseThe Mozilla Public License, version 2.0No license specified -
Method Summary
Modifier and TypeMethodDescriptionstatic Type
getType()
Get the GType of the License classint
getValue()
Get the numeric value of this enumstatic License
of
(int value) Create a new License for the provided valuestatic License
Returns the enum constant of this class with the specified name.static License[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
No license specified -
CUSTOM
A license text is going to be specified by the developer -
GPL_2_0
The GNU General Public License, version 2.0 or later -
GPL_3_0
The GNU General Public License, version 3.0 or later -
LGPL_2_1
The GNU Lesser General Public License, version 2.1 or later -
LGPL_3_0
The GNU Lesser General Public License, version 3.0 or later -
BSD
The BSD standard license -
MIT_X11
The MIT/X11 standard license -
ARTISTIC
The Artistic License, version 2.0 -
GPL_2_0_ONLY
The GNU General Public License, version 2.0 only -
GPL_3_0_ONLY
The GNU General Public License, version 3.0 only -
LGPL_2_1_ONLY
The GNU Lesser General Public License, version 2.1 only -
LGPL_3_0_ONLY
The GNU Lesser General Public License, version 3.0 only -
AGPL_3_0
The GNU Affero General Public License, version 3.0 or later -
AGPL_3_0_ONLY
The GNU Affero General Public License, version 3.0 only -
BSD_3
The 3-clause BSD licence -
APACHE_2_0
The Apache License, version 2.0 -
MPL_2_0
The Mozilla Public License, version 2.0 -
_0BSD
Zero-Clause BSD license
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-