net.ranides.assira.io
Enum FileFilter.AcceptMode

java.lang.Object
  extended by java.lang.Enum<FileFilter.AcceptMode>
      extended by net.ranides.assira.io.FileFilter.AcceptMode
All Implemented Interfaces:
Serializable, Comparable<FileFilter.AcceptMode>
Enclosing class:
FileFilter

public static enum FileFilter.AcceptMode
extends Enum<FileFilter.AcceptMode>

Tryb generowania wyniku listowania zawartości katalogów przez filtr.


Enum Constant Summary
ANY_DIRECTORY
          Dodaje do wyniku wszystkie napotkane katalogi
ANY_FILE
          Dodaje do wyniku wszystkie napotkane pliki
DIRECTORY
          Dodaje do wyniku katalogi spełniające warunki filtru.
FILE
          Dodaje do wyniku pliki spełniające warunki filtru.
RECURSIVE
          Przegląda katalog wgłąb
 
Method Summary
static FileFilter.AcceptMode valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileFilter.AcceptMode[] 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

FILE

public static final FileFilter.AcceptMode FILE
Dodaje do wyniku pliki spełniające warunki filtru.


ANY_FILE

public static final FileFilter.AcceptMode ANY_FILE
Dodaje do wyniku wszystkie napotkane pliki


DIRECTORY

public static final FileFilter.AcceptMode DIRECTORY
Dodaje do wyniku katalogi spełniające warunki filtru.


ANY_DIRECTORY

public static final FileFilter.AcceptMode ANY_DIRECTORY
Dodaje do wyniku wszystkie napotkane katalogi


RECURSIVE

public static final FileFilter.AcceptMode RECURSIVE
Przegląda katalog wgłąb

Method Detail

values

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

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

valueOf

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


Copyright © 2013. All Rights Reserved.