public class NotifyChangeEvent
extends java.lang.Object
Contains the details of a change notification event
Constructor and Description |
---|
NotifyChangeEvent(int filter,
int action,
java.lang.String fname,
boolean dir)
Class constructor
|
NotifyChangeEvent(int filter,
int action,
java.lang.String fname,
java.lang.String oldname,
boolean dir)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
int |
getAction()
Return the action
|
java.lang.String |
getFileName()
Return the file/directory name
|
int |
getFilter()
Return the event filter type
|
java.lang.String |
getOldFileName()
Return the old file/directory name, for rename events
|
java.lang.String |
getShortFileName()
Return the file/directory name only by stripping any leading path
|
java.lang.String |
getShortOldFileName()
Return the old file/directory name only by stripping any leading path
|
boolean |
hasOldFileName()
Check if the old file/directory name is valid
|
boolean |
isDirectory()
Check if the path refers to a directory
|
java.lang.String |
toString()
Return the notify change event as a string
|
public NotifyChangeEvent(int filter, int action, java.lang.String fname, boolean dir)
filter
- intaction
- intfname
- Stringdir
- booleanpublic NotifyChangeEvent(int filter, int action, java.lang.String fname, java.lang.String oldname, boolean dir)
filter
- intaction
- intfname
- Stringoldname
- Stringdir
- booleanpublic final int getFilter()
public final int getAction()
public final java.lang.String getFileName()
public final java.lang.String getShortFileName()
public final java.lang.String getOldFileName()
public final java.lang.String getShortOldFileName()
public final boolean hasOldFileName()
public final boolean isDirectory()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.