ccs.cpc
Enum Viewer.FileCap

java.lang.Object
  extended by java.lang.Enum<Viewer.FileCap>
      extended by ccs.cpc.Viewer.FileCap
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Viewer.FileCap>
Enclosing class:
Viewer

public static enum Viewer.FileCap
extends java.lang.Enum<Viewer.FileCap>

File handling capability. WITHOUT (doesn't accept a file), WITH (requires a file), EITHER (can work either way).


Enum Constant Summary
EITHER
           
WITH
           
WITHOUT
           
 
Method Summary
static Viewer.FileCap decode(int code)
          Nasty compatibility hack.
 java.lang.String i18name()
           
static Viewer.FileCap valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static Viewer.FileCap[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

WITHOUT

public static final Viewer.FileCap WITHOUT

WITH

public static final Viewer.FileCap WITH

EITHER

public static final Viewer.FileCap EITHER
Method Detail

values

public static Viewer.FileCap[] 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 (Viewer.FileCap c : Viewer.FileCap.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Viewer.FileCap 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 name
java.lang.NullPointerException - if the argument is null

i18name

public final java.lang.String i18name()

decode

public static Viewer.FileCap decode(int code)
Nasty compatibility hack. Translate a FileCap stored as an int, back into a FileCap.