public class FolderWatcher extends Observable implements FolderListener
Modifier and Type | Field and Description |
---|---|
protected Map<String,Entry> |
cache |
protected Location |
location |
Constructor and Description |
---|
FolderWatcher(Location location) |
FolderWatcher(String... path) |
Modifier and Type | Method and Description |
---|---|
void |
folderChanged(Collection<Entry> added,
Collection<String> removed,
boolean full)
Provide changes to the listener
|
Map<String,Entry> |
getCache() |
Collection<Entry> |
getList() |
Location |
getLocation() |
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
public FolderWatcher(String... path)
public FolderWatcher(Location location)
public void folderChanged(Collection<Entry> added, Collection<String> removed, boolean full)
FolderListener
If either no items were added or removed the corresponding list must still be not null. The lists may not be altered by the listener implementations and may by unmodifiable.
folderChanged
in interface FolderListener
added
- the folder entries that were addedremoved
- the folder entries that where removedfull
- true
if this is not a change but a full
transmission, in this case the removed
parameter
must be empty or null
.public Location getLocation()
public Collection<Entry> getList()
Copyright © 2016 Eclipse NeoSCADA Project. All rights reserved.