|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChildRegisteringDirectoryAdapter
This interface is implemented by DirectoryAdapter
:s that have to keep
track of all their children themselves. A directory adapter must do that when
there is no backing storage that can be used to find the child. This is true
for the RAM file system directory adapter.
Method Summary | |
---|---|
EntityAdapter |
getChild(String name)
Get the adapter for a child entity. |
void |
registerChild(EntityAdapter child)
This is used by directory adapters that have to keep track of child entities themselves (the RAM file system directory adapters, for instance). |
void |
unregisterChild(EntityAdapter child)
For directory adapters that keep track of all child entities themselves, this method is used to unregister a child entity that is deleted or moved from the directory. |
Methods inherited from interface org.entityfs.impl.adapter.DirectoryAdapter |
---|
assertCanBeDeleted, containsEntity, deleteChild, getChildEntityType, getEntityNames |
Methods inherited from interface org.entityfs.impl.adapter.EntityAdapter |
---|
canRead, canWrite, create, delete, exists, getEntityType, getFileSystemAdapter, getLastModified, getName, getParent, init, rename, setLastModified |
Method Detail |
---|
void registerChild(EntityAdapter child)
This method is called by the directory entity implementation when a new entity is created or an existing entity is found.
child
- The child entity adapter to register.unregisterChild(EntityAdapter)
,
getChild(String)
void unregisterChild(EntityAdapter child)
This method should be called by entity adapter methods that move or delete entities.
child
- The child to unregister.registerChild(EntityAdapter)
,
getChild(String)
,
EntityAdapter.delete()
,
EntityAdapter.rename(String, DirectoryAdapter)
EntityAdapter getChild(String name) throws EntityNotFoundException, UnsupportedOperationException
name
- The name of the child entity.
EntityNotFoundException
- If no child entity with the given name
exists.
UnsupportedOperationException
- If this method cannot be used with
this directory adapter implementation.registerChild(EntityAdapter)
,
unregisterChild(EntityAdapter)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |