| 1 | |
package org.webslinger.commons.vfs.cow; |
| 2 | |
|
| 3 | |
import java.util.Collection; |
| 4 | |
|
| 5 | |
import org.apache.commons.vfs.FileObject; |
| 6 | |
import org.apache.commons.vfs.FileSystemException; |
| 7 | |
|
| 8 | |
public interface COWEntry { |
| 9 | |
String getName(); |
| 10 | |
boolean isDeleted() throws FileSystemException; |
| 11 | |
boolean setDeleted(boolean deleted) throws FileSystemException; |
| 12 | |
String getSymlink() throws FileSystemException; |
| 13 | |
boolean setSymlink(String symlink) throws FileSystemException; |
| 14 | |
Collection<String> getBases() throws FileSystemException; |
| 15 | |
Collection<COWFileObject> getBaseFiles() throws FileSystemException; |
| 16 | |
boolean addBase(String base) throws FileSystemException; |
| 17 | |
boolean removeBase(String base) throws FileSystemException; |
| 18 | |
int getSerial(); |
| 19 | |
boolean checkSerial(int serial) throws FileSystemException; |
| 20 | |
void clear() throws FileSystemException; |
| 21 | |
boolean isEmpty(); |
| 22 | |
} |