Package org.cyclonedx.model
Enum Component.Type
- java.lang.Object
-
- java.lang.Enum<Component.Type>
-
- org.cyclonedx.model.Component.Type
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<Component.Type>
- Enclosing class:
- Component
public static enum Component.Type extends java.lang.Enum<Component.Type>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description APPLICATIONCONTAINERCRYPTOGRAPHIC_ASSETDATADEVICEDEVICE_DRIVERFILEFIRMWAREFRAMEWORKLIBRARYMACHINE_LEARNING_MODELOPERATING_SYSTEMPLATFORM
-
Field Summary
Fields Modifier and Type Field Description private java.lang.Stringname
-
Constructor Summary
Constructors Modifier Constructor Description privateType(java.lang.String name)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetTypeName()static Component.TypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static Component.Type[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
APPLICATION
public static final Component.Type APPLICATION
-
FRAMEWORK
public static final Component.Type FRAMEWORK
-
LIBRARY
public static final Component.Type LIBRARY
-
CONTAINER
public static final Component.Type CONTAINER
-
PLATFORM
public static final Component.Type PLATFORM
-
OPERATING_SYSTEM
public static final Component.Type OPERATING_SYSTEM
-
DEVICE
public static final Component.Type DEVICE
-
DEVICE_DRIVER
public static final Component.Type DEVICE_DRIVER
-
FIRMWARE
public static final Component.Type FIRMWARE
-
FILE
public static final Component.Type FILE
-
MACHINE_LEARNING_MODEL
public static final Component.Type MACHINE_LEARNING_MODEL
-
DATA
public static final Component.Type DATA
-
CRYPTOGRAPHIC_ASSET
public static final Component.Type CRYPTOGRAPHIC_ASSET
-
-
Method Detail
-
values
public static Component.Type[] 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 (Component.Type c : Component.Type.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Component.Type valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
getTypeName
public java.lang.String getTypeName()
-
-