Enum ReferenceCategory
- java.lang.Object
-
- java.lang.Enum<ReferenceCategory>
-
- org.spdx.library.model.v2.enumerations.ReferenceCategory
-
- All Implemented Interfaces:
Serializable
,Comparable<ReferenceCategory>
,org.spdx.core.IndividualUriValue
public enum ReferenceCategory extends Enum<ReferenceCategory> implements org.spdx.core.IndividualUriValue
Reference category for external refs- Author:
- Gary O'Neall
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MISSING
OTHER
PACKAGE_MANAGER
PERSISTENT_ID
SECURITY
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getIndividualURI()
String
getLongName()
String
getNameSpace()
static ReferenceCategory
valueOf(String name)
Returns the enum constant of this type with the specified name.static ReferenceCategory[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PACKAGE_MANAGER
public static final ReferenceCategory PACKAGE_MANAGER
-
SECURITY
public static final ReferenceCategory SECURITY
-
OTHER
public static final ReferenceCategory OTHER
-
PERSISTENT_ID
public static final ReferenceCategory PERSISTENT_ID
-
MISSING
public static final ReferenceCategory MISSING
-
-
Method Detail
-
values
public static ReferenceCategory[] 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 (ReferenceCategory c : ReferenceCategory.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReferenceCategory 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()
-
-