Enum Purpose
- java.lang.Object
-
- java.lang.Enum<Purpose>
-
- org.spdx.library.model.v2.enumerations.Purpose
-
- All Implemented Interfaces:
Serializable
,Comparable<Purpose>
,org.spdx.core.IndividualUriValue
public enum Purpose extends Enum<Purpose> implements org.spdx.core.IndividualUriValue
Package Purpose is intrinsic to how the package is being used rather than the content of the package.- Author:
- Gary O'Neall
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIndividualURI()
String
getLongName()
String
getNameSpace()
static Purpose
valueOf(String name)
Returns the enum constant of this type with the specified name.static Purpose[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPLICATION
public static final Purpose APPLICATION
-
FRAMEWORK
public static final Purpose FRAMEWORK
-
LIBRARY
public static final Purpose LIBRARY
-
OPERATING_SYSTEM
public static final Purpose OPERATING_SYSTEM
-
DEVICE
public static final Purpose DEVICE
-
FIRMWARE
public static final Purpose FIRMWARE
-
SOURCE
public static final Purpose SOURCE
-
FILE
public static final Purpose FILE
-
INSTALL
public static final Purpose INSTALL
-
ARCHIVE
public static final Purpose ARCHIVE
-
CONTAINER
public static final Purpose CONTAINER
-
OTHER
public static final Purpose OTHER
-
-
Method Detail
-
values
public static Purpose[] 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 (Purpose c : Purpose.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Purpose 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 nameNullPointerException
- if the argument is null
-
getIndividualURI
public String getIndividualURI()
- Specified by:
getIndividualURI
in interfaceorg.spdx.core.IndividualUriValue
-
getLongName
public String getLongName()
-
getNameSpace
public String getNameSpace()
-
-