gov.sandia.cognition.annotation
Enum SoftwareLicenseType

java.lang.Object
  extended by java.lang.Enum<SoftwareLicenseType>
      extended by gov.sandia.cognition.annotation.SoftwareLicenseType
All Implemented Interfaces:
Serializable, Comparable<SoftwareLicenseType>

public enum SoftwareLicenseType
extends Enum<SoftwareLicenseType>

An enumeration of common types of software licenses. This is not meant to be exhaustive, but instead enumerate common software licenses (particularly open source ones) for use with the SoftwareReference annotation.

Since:
3.0
Author:
Justin Basilico

Enum Constant Summary
Apache
          For software licensed under the Apache License.
BSD
          For software licensed under the Berkeley Software Distribution (BSD) license.
CDDL
          For software licensed under the Common Development and Distribution License (CDDL), or similar licenses such as the Mozilla Public License (MPL) or Eclipse License.
Commercial
          For software licensed under a commercial license.
Custom
          For software licensed under a specific tailored license for that software package.
GPL
          For software licensed under the GNU Public License (GPL).
LGPL
          For software licensed under the Lesser GNU Public License (LGPL), or similar licenses.
Other
          For any other software licenses.
PublicDomain
          For public domain software.
 
Method Summary
static SoftwareLicenseType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static SoftwareLicenseType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

PublicDomain

@PublicationReference(author="Wikipedia",
                      title="Public domain",
                      type=WebPage,
                      year=2009,
                      url="http://en.wikipedia.org/wiki/Public_domain#No_legal_restriction_on_use",
                      notes="The nonspecific license when work is posted for anybody to use without restriction.")
public static final SoftwareLicenseType PublicDomain
For public domain software.


BSD

@PublicationReference(author="Regents of the University of California",
                      title="The BSD License",
                      type=WebPage,
                      year=1998,
                      url="http://www.opensource.org/licenses/bsd-license.php",
                      notes="Open Source Initiative Approved license")
public static final SoftwareLicenseType BSD
For software licensed under the Berkeley Software Distribution (BSD) license.


Apache

@PublicationReference(author="Apache Software Foundation",
                      title="Apache License, Version 2.0",
                      type=WebPage,
                      year=2004,
                      url="http://www.apache.org/licenses/LICENSE-2.0",
                      notes="Open Source Initiative Approved license")
public static final SoftwareLicenseType Apache
For software licensed under the Apache License.


CDDL

@PublicationReference(author="Sun Microsystems",
                      title="Common Development and Distribution License (CDDL) Information",
                      type=WebPage,
                      year=2004,
                      url="http://www.sun.com/cddl/",
                      notes="Open Source Initiative Approved license")
public static final SoftwareLicenseType CDDL
For software licensed under the Common Development and Distribution License (CDDL), or similar licenses such as the Mozilla Public License (MPL) or Eclipse License.


LGPL

@PublicationReference(author="Free Software Foundation, Inc.",
                      title="GNU Lesser General Public License, Version 3",
                      type=WebPage,
                      year=2007,
                      url="http://www.gnu.org/licenses/lgpl.html",
                      notes="Open Source Initiative Approved license")
public static final SoftwareLicenseType LGPL
For software licensed under the Lesser GNU Public License (LGPL), or similar licenses.


GPL

@PublicationReference(author="Free Software Foundation, Inc.",
                      title="GNU General Public License, Version 3",
                      type=WebPage,
                      year=2007,
                      url="http://www.gnu.org/copyleft/gpl.html",
                      notes={"Open Source Initiative Approved license","DO NOT USE THIS LICENSE IN THE FOUNDRY, AS IT ACTS LIKE A VIRUS!"})
public static final SoftwareLicenseType GPL
For software licensed under the GNU Public License (GPL).


Commercial

public static final SoftwareLicenseType Commercial
For software licensed under a commercial license.


Custom

public static final SoftwareLicenseType Custom
For software licensed under a specific tailored license for that software package.


Other

public static final SoftwareLicenseType Other
For any other software licenses.

Method Detail

values

public static SoftwareLicenseType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (SoftwareLicenseType c : SoftwareLicenseType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static SoftwareLicenseType 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
NullPointerException - if the argument is null