org.kohsuke.jnt
Enum FileStatus
java.lang.Object
java.lang.Enum<FileStatus>
org.kohsuke.jnt.FileStatus
- All Implemented Interfaces:
- Serializable, Comparable<FileStatus>
public enum FileStatus
- extends Enum<FileStatus>
- Author:
- Kohsuke Kawaguchi
DRAFT
public static final FileStatus DRAFT
REVIEWED
public static final FileStatus REVIEWED
BASELINED
public static final FileStatus BASELINED
STABLE
public static final FileStatus STABLE
ARCHIVAL
public static final FileStatus ARCHIVAL
OBSOLETE
public static final FileStatus OBSOLETE
values
public static FileStatus[] 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 (FileStatus c : FileStatus.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static FileStatus 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 name
NullPointerException
- if the argument is null
toString
public String toString()
-
- Overrides:
toString
in class Enum<FileStatus>
parse
public static FileStatus parse(String name)
- Gets the
FileStatus
objcet from its name (such as "Draft").
- Throws:
IllegalArgumentException
- if the name is unrecognized.
Copyright © 2003-2010 Kohsuke Kawaguchi. All Rights Reserved.