|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--net.larsan.urd.util.fileset.FileSetEvent
A file set event is thrown by file sets implementing the WatchableFileSet when the set changes.
Changes occurs to single or multiple resources, in the former case the following events
exist: RESOURCE_CHANGED, RESOURCE_REMOVED and RESOURCE_ADDED,
and in the latter STRUCTURAL_CHANGE. These identifier are final static integers
in this class and can be retrieved from the event with the getType method.
| Field Summary | |
static int |
RESOURCE_ADDED
Identifier for added resource events. |
static int |
RESOURCE_CHANGED
Identifier for changed resource event. |
static int |
RESOURCE_REMOVED
Identifier for removed resource events. |
static int |
STRUCTURAL_CHANGE
Identifier for structural resource events. |
| Constructor Summary | |
FileSetEvent(int type,
FileSet source)
Construct a new event using a type identifier, a source and a resource. |
|
FileSetEvent(int type,
FileSet source,
Resource resource)
Construct a new event using a type identifier, a source and a resource. |
|
| Method Summary | |
Resource |
getResource()
Get ther resource this event concerns. |
FileSet |
getSource()
Get the file set this event originated from. |
int |
getType()
Get the event type. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final int RESOURCE_CHANGED
public static final int RESOURCE_REMOVED
public static final int RESOURCE_ADDED
public static final int STRUCTURAL_CHANGE
| Constructor Detail |
public FileSetEvent(int type,
FileSet source,
Resource resource)
type - Type of event, from static identifiers in this classsource - Originating file set, must not be nullresource - Resource triggering the event, or null if not known
public FileSetEvent(int type,
FileSet source)
type - Type of event, from static identifiers in this classsource - Originating file set, must not be null| Method Detail |
public int getType()
RESOURCE_CHANGED, RESOURCE_ADDED, RESOURCE_REMOVED
or STRUCTURAL_CHANGE.
public FileSet getSource()
public Resource getResource()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||