public class FileAttributeEvent extends FileEvent
source
Constructor and Description |
---|
FileAttributeEvent(FileObject src,
FileObject file,
String name,
Object oldValue,
Object newValue)
Creates new
FileAttributeEvent . |
FileAttributeEvent(FileObject src,
FileObject file,
String name,
Object oldValue,
Object newValue,
boolean expected)
Creates new
FileAttributeEvent . |
FileAttributeEvent(FileObject src,
String name,
Object oldValue,
Object newValue)
Creates new
FileAttributeEvent . |
Modifier and Type | Method and Description |
---|---|
String |
getName()
Gets the name of the attribute.
|
Object |
getNewValue()
Gets the new value of the attribute.
|
Object |
getOldValue()
Gets the old value of the attribute.
|
firedFrom, getFile, getTime, isExpected, runWhenDeliveryOver, toString
getSource
public FileAttributeEvent(FileObject src, String name, Object oldValue, Object newValue)
FileAttributeEvent
. The FileObject
where the action occurred
is assumed to be the same as the source object.src
- source file which sent this eventname
- name of attribute, or null
(since 1.33 only) if any attributes may have changedoldValue
- old value of attribute, or null
if the name isnewValue
- new value of attribute, or null
if the name ispublic FileAttributeEvent(FileObject src, FileObject file, String name, Object oldValue, Object newValue)
FileAttributeEvent
.src
- source file which sent this eventfile
- file object where the action occurredname
- name of attribute, or null
(since 1.33 only) if any attributes may have changedoldValue
- old value of attribute, or null
if the name isnewValue
- new value of attribute, or null
if the name ispublic FileAttributeEvent(FileObject src, FileObject file, String name, Object oldValue, Object newValue, boolean expected)
FileAttributeEvent
.src
- source file which sent this eventfile
- file object where the action occurredname
- name of attribute, or null
(since 1.33 only) if any attributes may have changedoldValue
- old value of attribute, or null
if the name isnewValue
- new value of attribute, or null
if the name isexpected
- sets flag whether the value was expectedpublic String getName()
null
(since 1.33 only) if an unknown attribute changedpublic Object getOldValue()
null
if the name ispublic Object getNewValue()
null
if the name is