|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.util.EventObject
oracle.ide.net.URLFileSystemEvent
public class URLFileSystemEvent
The URLFileSystemEvent
provides details as to URL changes that occurred on directory roots that listeners are tracking. Events are generated when a file or directory is added, changed, renamed, or removed within the directory tree of the registered root URL.
For FILE_RENAMED
and DIRECTORY_RENAMED
events, at least one of the new URL or old URL (or both) will be contained in the registered root URL directory. Clients cannot assume that both the new and old URLs are contained in the root URL.
Field Summary | |
---|---|
static int |
DIRECTORY_ADDED The event type for when a directory was created type of event. |
static int |
DIRECTORY_REMOVED The event type for when a directory was removed type of event. |
static int |
DIRECTORY_RENAMED The event type for when a directory was renamed. |
static int |
FILE_ADDED The event type for when a file was created type of event. |
static int |
FILE_CHANGED The event type for when a file was modified type of event. |
static int |
FILE_REMOVED The event type for when a file was removed type of event. |
static int |
FILE_RENAMED The event type for when a file was renamed. |
static int |
READ_ONLY_CHANGED The event type for when the read-only status of a file changes. |
Fields inherited from class java.util.EventObject |
---|
source |
Constructor Summary | |
---|---|
URLFileSystemEvent(java.net.URL[] rootURLs, java.net.URL affectedURL, int eventType) Construct an URLFileSystemEvent for an add/change/remove type event. |
|
URLFileSystemEvent(java.net.URL[] rootURLs, java.net.URL newURL, java.net.URL oldURL, int eventType) Construct an URLFileSystemEvent for a rename type event. |
Method Summary | |
---|---|
int |
getEventType() Fetch the event type that occurred, such as FILE_ADDED , FILE_CHANGED , or FILE_REMOVED . |
protected java.lang.String |
getEventTypeString() Fetch the debug string describing the event type for this event. |
protected static java.lang.String |
getEventTypeString(int eventType) Fetch the debug string describing the given event type. |
java.net.URL |
getNewURL() Fetch the new URL for a rename event. |
java.net.URL |
getOldURL() Fetch the old URL for a file or directory rename event. |
java.net.URL[] |
getRootURLs() Fetch the root URLs that were registered for events for this listener. |
java.net.URL |
getURL() Fetch the URL that this event occurred for. |
static boolean |
isValidEventType(int eventType) Fetch whether this is a known event type. |
java.lang.String |
toString() Readable version of event for debugging purposes. |
Methods inherited from class java.util.EventObject |
---|
getSource |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int FILE_ADDED
public static final int FILE_CHANGED
public static final int FILE_REMOVED
public static final int FILE_RENAMED
public static final int DIRECTORY_ADDED
public static final int DIRECTORY_REMOVED
public static final int DIRECTORY_RENAMED
public static final int READ_ONLY_CHANGED
Constructor Detail |
---|
public URLFileSystemEvent(java.net.URL[] rootURLs, java.net.URL affectedURL, int eventType)
URLFileSystemEvent
for an add/change/remove type event.
rootURLs
- the root URLs that this listener is registered to trackaffectedURL
- the affected URLeventType
- the event type indicating what happened with the URLpublic URLFileSystemEvent(java.net.URL[] rootURLs, java.net.URL newURL, java.net.URL oldURL, int eventType)
URLFileSystemEvent
for a rename type event.
rootURLs
- the root URLs that this listener is registered to tracknewURL
- the new URL for which this rename event applies tooldURL
- the old URL in the case of a rename eventeventType
- the event type indicating what happened with the URLMethod Detail |
---|
public static boolean isValidEventType(int eventType)
eventType
- the event type to validatepublic java.net.URL[] getRootURLs()
public java.net.URL getURL()
public java.net.URL getNewURL()
public java.net.URL getOldURL()
public int getEventType()
FILE_ADDED
, FILE_CHANGED
, or FILE_REMOVED
.protected java.lang.String getEventTypeString()
protected static java.lang.String getEventTypeString(int eventType)
eventType
- the event type to fetch the description ofpublic java.lang.String toString()
toString
in class java.util.EventObject
|
Oracle Fusion Middleware Java API Reference for Oracle Extension SDK 11g Release 2 (11.1.2.2.0) E17493-03 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |