public enum Part extends Enum<Part>
The part type for a CPE entry: application, operating system, hardware, any, or NA.
cpe:2.3:[part]:[vendor]:[product]:[version]:[update]:[edition]:[language]:[sw_edition]:[target_sw]:[target_hw]:[other]
| Enum Constant and Description |
|---|
ANY
Match ANY: '*'.
|
APPLICATION
Application: 'a'.
|
HARDWARE_DEVICE
Hardware device: 'h'.
|
NA
Not Application: '-'.
|
OPERATING_SYSTEM
Operating System: 'o'.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAbbreviation()
Gets the abbreviation for the part component.
|
static Part |
getEnum(String part)
Returns the enumeration value for the given abbreviation.
|
static Part |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Part[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Part APPLICATION
public static final Part OPERATING_SYSTEM
public static final Part HARDWARE_DEVICE
public static final Part ANY
public static final Part NA
public static Part[] values()
for (Part c : Part.values()) System.out.println(c);
public static Part valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getAbbreviation()
public static Part getEnum(String part) throws CpeParsingException
part - the enumeration valueCpeParsingException - thrown if the abbreviation is not a valid
Part typeCopyright © 2018–2023. All rights reserved.