com.teamdev.filewatch
Enum WatchingAttributes

java.lang.Object
  extended by java.lang.Enum<WatchingAttributes>
      extended by com.teamdev.filewatch.WatchingAttributes
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<WatchingAttributes>

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

Represents enumaration of file system attributes that FileWatcher can monitor.


Enum Constant Summary
AccessDate
          Specifies monitoring the changes of last access date attribute of a file or directory.
Attributes
          Specifies monitoring the changes of file's or directory's attributes.
DirectoryName
          Specifies monitoring of Create/Rename/Delete directory events.
FileName
          Specifies the monitoring of Create/Rename/Delete file events.
ModifiedDate
          Specifies monitoring the changes of last modified date attribute of a file or directory.
Size
          Specifies monitoring the changes of file size attribute.
Subtree
          Specifies the watching scope: when this option is specified then FileWatcher will monitor the changes in a specified folder and all its subdirectories; otherwise only a specified directory will be monitored.
 
Method Summary
static WatchingAttributes valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static WatchingAttributes[] 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

Subtree

public static final WatchingAttributes Subtree
Specifies the watching scope: when this option is specified then FileWatcher will monitor the changes in a specified folder and all its subdirectories; otherwise only a specified directory will be monitored.


FileName

public static final WatchingAttributes FileName
Specifies the monitoring of Create/Rename/Delete file events.
A registered file events listener (instance of FileEventsListener) will receive FileEvent.Added, FileEvent.Renamed and FileEvent.Deleted notifications respectively.


DirectoryName

public static final WatchingAttributes DirectoryName
Specifies monitoring of Create/Rename/Delete directory events.
A registered file events listener (instance of FileEventsListener) will receive FileEvent.Added, FileEvent.Renamed and FileEvent.Deleted notifications respectively.


Attributes

public static final WatchingAttributes Attributes
Specifies monitoring the changes of file's or directory's attributes.
A registered file events listener (instance of FileEventsListener) will receive FileEvent.Changed notification.


Size

public static final WatchingAttributes Size
Specifies monitoring the changes of file size attribute.
A registered file events listener (instance of FileEventsListener) will receive FileEvent.Changed notification.


ModifiedDate

public static final WatchingAttributes ModifiedDate
Specifies monitoring the changes of last modified date attribute of a file or directory.
A registered file events listener (instance of FileEventsListener) will receive FileEvent.Changed notification.


AccessDate

public static final WatchingAttributes AccessDate
Specifies monitoring the changes of last access date attribute of a file or directory.
A registered file events listener (instance of FileEventsListener) will receive FileEvent.Changed notification.

Method Detail

values

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

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

valueOf

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