Serializable
public class FileAttributeEvent extends FileEvent
source
Constructor | Description |
---|---|
FileAttributeEvent(FileObject src,
String name,
Object oldValue,
Object newValue) |
Creates new
FileAttributeEvent . |
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 . |
Modifier and Type | Method | 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.
|
getSource
firedFrom, getFile, getTime, isExpected, runWhenDeliveryOver, toString
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 isBuilt on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.