Enum FileExtensionHint
- java.lang.Object
-
- java.lang.Enum<FileExtensionHint>
-
- org.owasp.dependencycheck.data.nvd.ecosystem.FileExtensionHint
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<FileExtensionHint>,EcosystemHint
public enum FileExtensionHint extends java.lang.Enum<FileExtensionHint> implements EcosystemHint
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CMAKE_CC file extension hint.CMAKE_CPPC++ file extension hint.CMAKE_HC file extension hint.JAR_JAVAJava file extension hint.JAR_JSPPerl file extension hint.PERL_PLPerl file extension hint.PERL_PMPerl file extension hint.PHPPHP file extension hint.PYTONPython file extension hint.RUBYRuby file extension hint.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetEcosystem()Returns the ecosystem.java.lang.StringgetExtension()EcosystemHintNaturegetNature()Returns the nature of the ecosystem hint.java.lang.StringgetValue()Returns the value.static FileExtensionHintvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static FileExtensionHint[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PHP
public static final FileExtensionHint PHP
PHP file extension hint.
-
PERL_PM
public static final FileExtensionHint PERL_PM
Perl file extension hint.
-
PERL_PL
public static final FileExtensionHint PERL_PL
Perl file extension hint.
-
JAR_JAVA
public static final FileExtensionHint JAR_JAVA
Java file extension hint.
-
JAR_JSP
public static final FileExtensionHint JAR_JSP
Perl file extension hint.
-
RUBY
public static final FileExtensionHint RUBY
Ruby file extension hint.
-
PYTON
public static final FileExtensionHint PYTON
Python file extension hint.
-
CMAKE_CPP
public static final FileExtensionHint CMAKE_CPP
C++ file extension hint.
-
CMAKE_C
public static final FileExtensionHint CMAKE_C
C file extension hint.
-
CMAKE_H
public static final FileExtensionHint CMAKE_H
C file extension hint.
-
-
Method Detail
-
values
public static FileExtensionHint[] 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 (FileExtensionHint c : FileExtensionHint.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileExtensionHint 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
-
getEcosystem
public java.lang.String getEcosystem()
Description copied from interface:EcosystemHintReturns the ecosystem.- Specified by:
getEcosystemin interfaceEcosystemHint- Returns:
- the ecosystem
-
getExtension
public java.lang.String getExtension()
-
getNature
public EcosystemHintNature getNature()
Description copied from interface:EcosystemHintReturns the nature of the ecosystem hint.- Specified by:
getNaturein interfaceEcosystemHint- Returns:
- the nature of the ecosystem hint
-
getValue
public java.lang.String getValue()
Description copied from interface:EcosystemHintReturns the value.- Specified by:
getValuein interfaceEcosystemHint- Returns:
- the value
-
-