|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.entityfs.impl.impl.adapter.AbstractRWEntityAdapter<T,U>
public abstract class AbstractRWEntityAdapter<T extends FileSystemAdapter,U extends DirectoryAdapter>
| Constructor Summary | |
|---|---|
protected |
AbstractRWEntityAdapter(T fsAdapter,
U parent,
String name)
|
| Method Summary | |
|---|---|
boolean |
canRead()
Subclasses may override as needed. |
boolean |
canWrite()
Subclasses may override as needed. |
boolean |
exists()
Subclasses may override as needed. |
T |
getFileSystemAdapter()
Get the FileSystemAdapter for the file system where the entity
is. |
String |
getName()
Get the name of the entity. |
U |
getParent()
Get the parent DirectoryAdapter. |
void |
init()
This implementation does nothing. |
protected void |
setName(String name)
|
protected void |
setParent(U parent)
Set a new parent for the entity adapter. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.entityfs.impl.adapter.EntityAdapter |
|---|
create, delete, getEntityType, getLastModified, rename, setLastModified |
| Constructor Detail |
|---|
protected AbstractRWEntityAdapter(T fsAdapter,
U parent,
String name)
| Method Detail |
|---|
public String getName()
EntityAdapter
protected void setName(String name)
public U getParent()
EntityAdapterDirectoryAdapter.
DirectoryAdapter.protected void setParent(U parent)
This method does not call
ChildRegisteringDirectoryAdapter.registerChild(org.entityfs.impl.adapter.EntityAdapter)
on the new parent.
parent - public boolean canWrite()
true if the entity can be written to.public void init()
init in interface EntityAdapterpublic T getFileSystemAdapter()
EntityAdapterFileSystemAdapter for the file system where the entity
is.
getFileSystemAdapter in interface EntityAdapterFileSystemAdapter.public boolean exists()
exists in interface EntityAdaptertrue if the entity exists.public boolean canRead()
canRead in interface EntityAdaptertrue if the entity can be read.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||