org.kohsuke.jnt
Enum FileStatus

java.lang.Object
  extended by java.lang.Enum<FileStatus>
      extended by org.kohsuke.jnt.FileStatus
All Implemented Interfaces:
Serializable, Comparable<FileStatus>

public enum FileStatus
extends Enum<FileStatus>

Author:
Kohsuke Kawaguchi

Enum Constant Summary
ARCHIVAL
           
BASELINED
           
DRAFT
           
OBSOLETE
           
REVIEWED
           
STABLE
           
 
Method Summary
static FileStatus parse(String name)
          Gets the FileStatus objcet from its name (such as "Draft").
 String toString()
          
static FileStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileStatus[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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-2009 Kohsuke Kawaguchi. All Rights Reserved.