Package jenkins.scm.api
Enum SCMFile.Type
- java.lang.Object
-
- java.lang.Enum<SCMFile.Type>
-
- jenkins.scm.api.SCMFile.Type
-
- All Implemented Interfaces:
Serializable
,Comparable<SCMFile.Type>
- Enclosing class:
- SCMFile
public static enum SCMFile.Type extends Enum<SCMFile.Type>
Represents the type of aSCMFile
.- Since:
- 2.0
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DIRECTORY
TheSCMFile
is a regular directory.LINK
TheSCMFile
is a link.NONEXISTENT
TheSCMFile
does not exist.OTHER
TheSCMFile
is something else, but it existsREGULAR_FILE
TheSCMFile
is a regular file.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SCMFile.Type
valueOf(String name)
Returns the enum constant of this type with the specified name.static SCMFile.Type[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NONEXISTENT
public static final SCMFile.Type NONEXISTENT
TheSCMFile
does not exist.
-
REGULAR_FILE
public static final SCMFile.Type REGULAR_FILE
TheSCMFile
is a regular file.
-
DIRECTORY
public static final SCMFile.Type DIRECTORY
TheSCMFile
is a regular directory.
-
LINK
public static final SCMFile.Type LINK
TheSCMFile
is a link.
-
OTHER
public static final SCMFile.Type OTHER
TheSCMFile
is something else, but it exists
-
-
Method Detail
-
values
public static SCMFile.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 (SCMFile.Type c : SCMFile.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 SCMFile.Type 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
-
-