Enum ClasspathType
- java.lang.Object
-
- java.lang.Enum<ClasspathType>
-
- com.github.victools.jsonschema.plugin.maven.ClasspathType
-
- All Implemented Interfaces:
Serializable,Comparable<ClasspathType>
public enum ClasspathType extends Enum<ClasspathType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description PROJECT_ONLYOnly classes in the project.WITH_ALL_DEPENDENCIESClasses from the project, compile time and runtime dependencies.WITH_COMPILE_DEPENDENCIESClasses from the project and any compile time dependencies.WITH_RUNTIME_DEPENDENCIESClasses from the project and any runtime dependencies.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<String>getClasspathElements(org.apache.maven.project.MavenProject project)List<URL>getUrls(org.apache.maven.project.MavenProject project)static ClasspathTypevalueOf(String name)Returns the enum constant of this type with the specified name.static ClasspathType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
PROJECT_ONLY
public static final ClasspathType PROJECT_ONLY
Only classes in the project.
-
WITH_RUNTIME_DEPENDENCIES
public static final ClasspathType WITH_RUNTIME_DEPENDENCIES
Classes from the project and any runtime dependencies.
-
WITH_COMPILE_DEPENDENCIES
public static final ClasspathType WITH_COMPILE_DEPENDENCIES
Classes from the project and any compile time dependencies.
-
WITH_ALL_DEPENDENCIES
public static final ClasspathType WITH_ALL_DEPENDENCIES
Classes from the project, compile time and runtime dependencies.
-
-
Method Detail
-
values
public static ClasspathType[] 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 (ClasspathType c : ClasspathType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ClasspathType 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
-
getClasspathElements
public Collection<String> getClasspathElements(org.apache.maven.project.MavenProject project)
-
-