|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openide.loaders.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 inname - the new name to useFileObject or null if it cannot be copiedIOException - when the operation fails
public abstract 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 fails
public 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 useFileObject or null if it has been deletedIOException - when the operation fails
public abstract void delete()
throws IOException
IOException - when the operation fails
public 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 useFileObject or null if it cannot be copiedIOException - when the operation fails
public FileLock takeLock()
throws IOException
nullIOException - if the lock could not be takenpublic boolean isLocked()
true if sopublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Objectprotected Object writeReplace()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||