Class DiskFileStoreAdapter
java.lang.Object
org.applecommander.change.ChangeRegistry<FileStore.FileStoreChangeEvent>
com.webcodepro.applecommander.storage.DiskFileStoreAdapter
- All Implemented Interfaces:
CapabilityProvider, ChangeSource<FileStore.FileStoreChangeEvent>, FileStore, Container, InformationProvider
public class DiskFileStoreAdapter
extends ChangeRegistry<FileStore.FileStoreChangeEvent>
implements FileStore
The
DiskFileStoreAdapter is a shim that allows FormattedDisk to be mapped into the
new/evolving FileStore and associated interface(s).
The intent is that this is a short-term strategy.- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classTheDiskDirectoryEntryAdapteris a shim that allows aFormattedDiskorDirectoryEntryto be mapped into the new/evolvingDirectory/WritableDirectoryand associated interface(s).static classTheDiskFileEntryAdapteris a shim that allows acom.webcodepro.applecommander.storage.FileEntryto be mapped into the new/evolvingFileEntry/WritableFileEntryand associated interface(s).Nested classes/interfaces inherited from interface FileStore
FileStore.ChangeType, FileStore.FileStoreChangeEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancan(Capability capability) Helps identify capabilities of the existing component.<T> Optional<T> Translate the "legacy"FormattedDiskFileColumnHeaderto the newDisplayColumnstructure.getLabel()The label is a mechanism to distinguish multiple file stores in a single file.This is the path separator character.All FileStores support a "root" directory that references all files.getType()Get the type of file store.Methods inherited from class ChangeRegistry
addChangeListener, notifyChangeListeners, removeChangeListenerMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ChangeSource
addChangeListener, removeChangeListener
-
Constructor Details
-
DiskFileStoreAdapter
-
-
Method Details
-
get
-
getType
-
getLabel
Description copied from interface:FileStoreThe label is a mechanism to distinguish multiple file stores in a single file. For instance, UniDOS has two file stores in the file, so it would have two different labels such as "Disk 1" and "Disk 2". -
getRootDirectory
Description copied from interface:FileStoreAll FileStores support a "root" directory that references all files.- Specified by:
getRootDirectoryin interfaceFileStore
-
getPathSeparator
Description copied from interface:FileStoreThis is the path separator character.- Specified by:
getPathSeparatorin interfaceFileStore
-
can
Description copied from interface:CapabilityProviderHelps identify capabilities of the existing component.- Specified by:
canin interfaceCapabilityProvider
-
getDisplayColumns
Translate the "legacy"FormattedDiskFileColumnHeaderto the newDisplayColumnstructure. Note that we need to track what has been seen as well as where it comes from and the index values in order to replicate most of the capability. This does not solve for type since the old API pre-formats everything as a String.- Specified by:
getDisplayColumnsin interfaceFileStore
-
information
- Specified by:
informationin interfaceInformationProvider
-