java.io.SerializableFileEntry, FileEntry.Folder, FileEntry.Numbpublic abstract class MultiDataObject.Entry
extends java.lang.Object
implements java.io.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,
java.lang.String suffix) |
Called when the entry is to be copied.
|
org.openide.filesystems.FileObject |
copyRename(org.openide.filesystems.FileObject f,
java.lang.String name,
java.lang.String ext) |
Called when the entry is to be copied and renamed.
|
abstract org.openide.filesystems.FileObject |
createFromTemplate(org.openide.filesystems.FileObject f,
java.lang.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(java.lang.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,
java.lang.String suffix) |
Called when the entry is to be moved.
|
abstract org.openide.filesystems.FileObject |
rename(java.lang.String name) |
Called when the entry is to be renamed.
|
org.openide.filesystems.FileLock |
takeLock() |
Try to lock this file entry.
|
protected java.lang.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,
java.lang.String suffix)
throws java.io.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 copiedjava.io.IOException - when the operation failspublic abstract org.openide.filesystems.FileObject rename(java.lang.String name)
throws java.io.IOException
FileObject,
or delete it (if it cannot be renamed).name - the new nameFileObject or null if it has been deletedjava.io.IOException - when the operation failspublic abstract org.openide.filesystems.FileObject move(org.openide.filesystems.FileObject f,
java.lang.String suffix)
throws java.io.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 deletedjava.io.IOException - when the operation failspublic abstract void delete()
throws java.io.IOException
java.io.IOException - when the operation failspublic abstract org.openide.filesystems.FileObject createFromTemplate(org.openide.filesystems.FileObject f,
java.lang.String name)
throws java.io.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 copiedjava.io.IOException - when the operation failspublic org.openide.filesystems.FileObject copyRename(org.openide.filesystems.FileObject f,
java.lang.String name,
java.lang.String ext)
throws java.io.IOException
f - the folder to create this entry inname - new file nameext - new file extensionFileObject, never nulljava.io.IOException - when the operation failspublic org.openide.filesystems.FileLock takeLock()
throws java.io.IOException
nulljava.io.IOException - if the lock could not be takenpublic boolean isLocked()
true if sopublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectprotected java.lang.Object writeReplace()
Built on April 24 2018. | Portions Copyright 1997-2018 Oracle. All rights reserved.