com.faunos.util.boot
Enum FileResolver.Constraints

java.lang.Object
  extended by java.lang.Enum<FileResolver.Constraints>
      extended by com.faunos.util.boot.FileResolver.Constraints
All Implemented Interfaces:
Serializable, Comparable<FileResolver.Constraints>
Enclosing class:
FileResolver

public static enum FileResolver.Constraints
extends Enum<FileResolver.Constraints>


Enum Constant Summary
EXISTING_DIRECTORY
           
EXISTING_FILE
           
POTENTIAL_DIRECTORY
           
POTENTIAL_FILE
           
 
Method Summary
static FileResolver.Constraints forProperties(boolean directory, boolean mustExist)
           
 boolean isDirectory()
           
 boolean mustExist()
           
static FileResolver.Constraints valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FileResolver.Constraints[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

EXISTING_DIRECTORY

public static final FileResolver.Constraints EXISTING_DIRECTORY

EXISTING_FILE

public static final FileResolver.Constraints EXISTING_FILE

POTENTIAL_DIRECTORY

public static final FileResolver.Constraints POTENTIAL_DIRECTORY

POTENTIAL_FILE

public static final FileResolver.Constraints POTENTIAL_FILE
Method Detail

values

public static final FileResolver.Constraints[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(FileResolver.Constraints c : FileResolver.Constraints.values())
        System.out.println(c);

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

valueOf

public static FileResolver.Constraints 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

isDirectory

public boolean isDirectory()

mustExist

public boolean mustExist()

forProperties

public static FileResolver.Constraints forProperties(boolean directory,
                                                     boolean mustExist)


SourceForge.net Logo