snaq.util.jclap
Enum StringOption.FileFilter.AcceptFileType

java.lang.Object
  extended by java.lang.Enum<StringOption.FileFilter.AcceptFileType>
      extended by snaq.util.jclap.StringOption.FileFilter.AcceptFileType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<StringOption.FileFilter.AcceptFileType>
Enclosing class:
StringOption.FileFilter

public static enum StringOption.FileFilter.AcceptFileType
extends java.lang.Enum<StringOption.FileFilter.AcceptFileType>

Enumeration of possible types to accept.


Enum Constant Summary
ACCEPT_ALL
          Use to accept only files or directories.
ACCEPT_DIR
          Use to accept only directories (not files).
ACCEPT_FILE
          Use to accept only files (not directories).
 
Method Summary
static StringOption.FileFilter.AcceptFileType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static StringOption.FileFilter.AcceptFileType[] 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, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ACCEPT_FILE

public static final StringOption.FileFilter.AcceptFileType ACCEPT_FILE
Use to accept only files (not directories).


ACCEPT_DIR

public static final StringOption.FileFilter.AcceptFileType ACCEPT_DIR
Use to accept only directories (not files).


ACCEPT_ALL

public static final StringOption.FileFilter.AcceptFileType ACCEPT_ALL
Use to accept only files or directories.

Method Detail

values

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

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

valueOf

public static StringOption.FileFilter.AcceptFileType 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