|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileSystemImplementation
This is the interface for a FileSystem
implementation. It contains
methods that are only used by file system implementations; not by file system
clients. A FileSystem
object can always be cast to a FileSystemImplementation
object.
A file system implementation's SupportObjects
is an immutable
collection of support objects that file system, entity and capability
implementations occasionally need.
Capabilities may proxy FileSystem
objects. The consequences are
discussed in the Developer's guide.
The methods in this interface should only be used by file system and capability implementations.
Method Summary | |
---|---|
FileSystemDelegate |
getDelegate()
Get the file system delegate. |
EventManager |
getEventManager()
Get this file system's event manager. |
FileSystemAdapter |
getFileSystemAdapter()
Get the backend adapter for this file system. |
List<EntityObserver> |
getObserverList()
Get the list of EntityObserver :s that are registered for this
file system object. |
SupportObjects |
getSupportObjects()
Get this file system's support objects. |
void |
init()
This is called after the file system object has been created but before it is published. |
void |
setRootDirectory(DirectoryImplementation di)
Set the file system's root directory. |
void |
validateEntityName(String name,
EntityType et)
Validate that the entity name is valid in this file system implementation. |
Methods inherited from interface org.entityfs.event.Observable |
---|
addObserver, countObservers, deleteObserver, deleteObservers |
Method Detail |
---|
void init()
init
has not been called yet on the root
directory when this method is called.
This method is responsible for calling init
on the
FileSystemDelegate
.
FileSystemDelegate getDelegate()
FileSystemAdapter getFileSystemAdapter()
List<EntityObserver> getObserverList()
EntityObserver
:s that are registered for this
file system object. The returned list should be immutable.
EntityObserver
:s.SupportObjects getSupportObjects()
EventManager getEventManager()
void validateEntityName(String name, EntityType et) throws IllegalArgumentException
name
- The name to validate.et
- The type of the entity.
IllegalArgumentException
- If the entity name is invalid.void setRootDirectory(DirectoryImplementation di)
di
- The root directory.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |