com.springsource.util.io
Enum FileSystemEvent

java.lang.Object
  extended by java.lang.Enum<FileSystemEvent>
      extended by com.springsource.util.io.FileSystemEvent
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<FileSystemEvent>

public enum FileSystemEvent
extends java.lang.Enum<FileSystemEvent>

Describes a monitorable event on a file system object.

Concurrent Semantics
Threadsafe.

Since:
Jersey
Author:
Rob Harrop

Enum Constant Summary
CREATED
          Signals that a new file system object was created.
DELETED
          Signals that a file system object was deleted.
INITIAL
          Signals the initial observation of a file system object.
MODIFIED
          Signals that a file system object was modified.
 
Method Summary
static FileSystemEvent valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static FileSystemEvent[] 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

INITIAL

public static final FileSystemEvent INITIAL
Signals the initial observation of a file system object.


CREATED

public static final FileSystemEvent CREATED
Signals that a new file system object was created.


DELETED

public static final FileSystemEvent DELETED
Signals that a file system object was deleted.


MODIFIED

public static final FileSystemEvent MODIFIED
Signals that a file system object was modified.

Method Detail

values

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

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

valueOf

public static FileSystemEvent 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