rcf.core.framework.source
Enum LicenseType
java.lang.Object
java.lang.Enum<LicenseType>
rcf.core.framework.source.LicenseType
- All Implemented Interfaces:
- Serializable, Comparable<LicenseType>
@Revision(value="$Revision: 1.5 $",
date="$Date: 2006/12/20 17:21:19 $",
tag="$Name: $")
public enum LicenseType- extends Enum<LicenseType>
An annotation of several types of source code licenses which may be specified
as the type of a license. The licenses
in this enumeration are listed by their common name, and we attach no actual
terms to them here.
Note:
- In general it is better to use
Unknown than to approximate.
- In the future this enumeration may be extended to include more licenses.
TODO: Javadoc review, Seal/Finalize
- Version:
- $Revision: 1.5 $
- Author:
- Greg Gibeling
- See Also:
License
|
Method Summary |
static LicenseType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LicenseType[] |
values()
Returns an array containing the constants of this enum type, in
the order they're declared. |
Unknown
public static final LicenseType Unknown
GPL
public static final LicenseType GPL
LGPL
public static final LicenseType LGPL
BSD
public static final LicenseType BSD
Closed
public static final LicenseType Closed
values
public static final LicenseType[] values()
- Returns an array containing the constants of this enum type, in
the order they're declared. This method may be used to iterate
over the constants as follows:
for(LicenseType c : LicenseType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they're declared
valueOf
public static LicenseType valueOf(String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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 type has no constant
with the specified name