|
org.openide.loaders 5.9.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openide.loaders.MultiDataObject.Entry
public abstract class MultiDataObject.Entry
Represents one file in a group data object
.
Constructor Summary | |
---|---|
protected |
MultiDataObject.Entry(FileObject file)
|
Method Summary | |
---|---|
abstract FileObject |
copy(FileObject f,
String suffix)
Called when the entry is to be copied. |
abstract FileObject |
createFromTemplate(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. |
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 FileObject |
move(FileObject f,
String suffix)
Called when the entry is to be moved. |
abstract FileObject |
rename(String name)
Called when the entry is to be renamed. |
FileLock |
takeLock()
Try to lock this file entry. |
protected Object |
writeReplace()
Make a Serialization replacement. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected MultiDataObject.Entry(FileObject file)
Method Detail |
---|
public final FileObject getFile()
public final MultiDataObject getDataObject()
public boolean isImportant()
public abstract FileObject copy(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 file
FileObject
or null
if it cannot be copied
IOException
- when the operation failspublic abstract FileObject rename(String name) throws IOException
FileObject
,
or delete it (if it cannot be renamed).
name
- the new name
FileObject
or null
if it has been deleted
IOException
- when the operation failspublic abstract FileObject move(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 use
FileObject
or null
if it has been deleted
IOException
- when the operation failspublic abstract void delete() throws IOException
IOException
- when the operation failspublic abstract FileObject createFromTemplate(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 use
FileObject
or null
if it cannot be copied
IOException
- when the operation failspublic FileLock takeLock() throws IOException
null
IOException
- if the lock could not be takenpublic boolean isLocked()
true
if sopublic boolean equals(Object o)
public int hashCode()
protected Object writeReplace()
|
org.openide.loaders 5.9.22 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |