rcf.core.framework.source
Enum LicenseType

java.lang.Object
  extended by java.lang.Enum<LicenseType>
      extended by 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:

TODO: Javadoc review, Seal/Finalize

Version:
$Revision: 1.5 $
Author:
Greg Gibeling
See Also:
License

Enum Constant Summary
BSD
           
Closed
           
GPL
           
LGPL
           
Unknown
           
 
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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