SerializableFileEntry, FileEntry.Folder, FileEntry.Numbpublic abstract class MultiDataObject.Entry extends Object implements Serializable
group data object.| Modifier | Constructor | Description |
|---|---|---|
protected |
Entry(org.openide.filesystems.FileObject file) |
| Modifier and Type | Method | Description |
|---|---|---|
abstract org.openide.filesystems.FileObject |
copy(org.openide.filesystems.FileObject f,
String suffix) |
Called when the entry is to be copied.
|
org.openide.filesystems.FileObject |
copyRename(org.openide.filesystems.FileObject f,
String name,
String ext) |
Called when the entry is to be copied and renamed.
|
abstract org.openide.filesystems.FileObject |
createFromTemplate(org.openide.filesystems.FileObject f,
String name) |
Called when the entry is to be created from a template.
|
abstract void |
delete() |
Called when the entry is to be deleted.
|
boolean |
equals(Object o) |
|
MultiDataObject |
getDataObject() |
Get the multi data object this entry is assigned to.
|
org.openide.filesystems.FileObject |
getFile() |
Get the file this entry works with.
|
int |
hashCode() |
|
boolean |
isImportant() |
Method that allows to check whether an entry is important or is not.
|
boolean |
isLocked() |
Tests whether the entry is locked.
|
abstract org.openide.filesystems.FileObject |
move(org.openide.filesystems.FileObject f,
String suffix) |
Called when the entry is to be moved.
|
abstract org.openide.filesystems.FileObject |
rename(String name) |
Called when the entry is to be renamed.
|
org.openide.filesystems.FileLock |
takeLock() |
Try to lock this file entry.
|
protected Object |
writeReplace() |
Make a Serialization replacement.
|
public final org.openide.filesystems.FileObject getFile()
public final MultiDataObject getDataObject()
public boolean isImportant()
public abstract org.openide.filesystems.FileObject copy(org.openide.filesystems.FileObject f,
String suffix)
throws IOException
FileObject,
or do nothing (if it cannot be copied).f - the folder to create this entry insuffix - the suffix to add to the name of original fileFileObject or null if it cannot be copiedIOException - when the operation failspublic abstract org.openide.filesystems.FileObject rename(String name) throws IOException
FileObject,
or delete it (if it cannot be renamed).name - the new nameFileObject or null if it has been deletedIOException - when the operation failspublic abstract org.openide.filesystems.FileObject move(org.openide.filesystems.FileObject f,
String suffix)
throws IOException
FileObject,
or delete it (if it cannot be moved).f - the folder to move this entry tosuffix - the suffix to useFileObject or null if it has been deletedIOException - when the operation failspublic abstract void delete()
throws IOException
IOException - when the operation failspublic abstract org.openide.filesystems.FileObject createFromTemplate(org.openide.filesystems.FileObject f,
String name)
throws IOException
FileObject,
or do nothing (if it cannot be copied).f - the folder to create this entry inname - the new name to useFileObject or null if it cannot be copiedIOException - when the operation failspublic org.openide.filesystems.FileObject copyRename(org.openide.filesystems.FileObject f,
String name,
String ext)
throws IOException
f - the folder to create this entry inname - new file nameext - new file extensionFileObject, never nullIOException - when the operation failspublic org.openide.filesystems.FileLock takeLock()
throws IOException
nullIOException - if the lock could not be takenpublic boolean isLocked()
true if soprotected Object writeReplace()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.