Package org.eclipse.serializer.afs.types
Class AFileSystem.Abstract<H extends AIoHandler,D,F>
- java.lang.Object
-
- org.eclipse.serializer.afs.types.AFileSystem.Abstract<H,D,F>
-
- All Implemented Interfaces:
ACreator,AFileSystem,AResolver<D,F>,AResolving,ARoot.Creator,WriteController
- Enclosing interface:
- AFileSystem
public abstract static class AFileSystem.Abstract<H extends AIoHandler,D,F> extends Object implements AFileSystem, AResolver<D,F>, ACreator
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.afs.types.ACreator
ACreator.Creator
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.afs.types.AFileSystem
AFileSystem.Abstract<H extends AIoHandler,D,F>
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.afs.types.WriteController
WriteController.Disabled, WriteController.Enabled
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedAbstract(String defaultProtocol, H ioHandler)protectedAbstract(String defaultProtocol, ACreator.Creator creatorCreator, H ioHandler)protectedAbstract(String defaultProtocol, ACreator.Creator creatorCreator, AccessManager.Creator accessManagerCreator, H ioHandler)
-
Method Summary
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.serializer.afs.types.ACreator
createDirectory, createFile, createFile
-
Methods inherited from interface org.eclipse.serializer.afs.types.AFileSystem
assemblePath, assemblePath, buildPath, buildPath, convertToReading, convertToWriting, deriveFileIdentifier, deriveFileName, deriveFileType, ensureDirectoryPath, ensureFilePath, ensureFilePath, getFileName, getFileType, wrapForReading, wrapForWriting
-
Methods inherited from interface org.eclipse.serializer.afs.types.AResolver
ensureDirectory, ensureFile, resolve, resolve, resolveDirectory, resolveDirectoryToPath, resolveFile, resolveFileToPath
-
Methods inherited from interface org.eclipse.serializer.afs.types.AResolving
resolveDirectoryPath, resolveFilePath, resolveFilePath, resolveFilePath
-
Methods inherited from interface org.eclipse.serializer.afs.types.ARoot.Creator
createRootDirectory, protocol
-
-
-
-
Constructor Detail
-
Abstract
protected Abstract(String defaultProtocol, ACreator.Creator creatorCreator, H ioHandler)
-
Abstract
protected Abstract(String defaultProtocol, ACreator.Creator creatorCreator, AccessManager.Creator accessManagerCreator, H ioHandler)
-
-
Method Detail
-
validateIsWritable
public final void validateIsWritable()
- Specified by:
validateIsWritablein interfaceWriteController
-
isWritable
public final boolean isWritable()
- Specified by:
isWritablein interfaceWriteController
-
ensureCreator
protected ACreator ensureCreator(ACreator.Creator creatorCreator)
-
fileSystem
public AFileSystem fileSystem()
- Specified by:
fileSystemin interfaceAResolver<H extends AIoHandler,D>
-
defaultProtocol
public final String defaultProtocol()
- Specified by:
defaultProtocolin interfaceAFileSystem
-
creator
public ACreator creator()
- Specified by:
creatorin interfaceAFileSystem
-
accessManager
public AccessManager accessManager()
- Specified by:
accessManagerin interfaceAFileSystem
-
ioHandler
public H ioHandler()
- Specified by:
ioHandlerin interfaceAFileSystem
-
lookupRoot
public final ADirectory lookupRoot(String identifier)
- Specified by:
lookupRootin interfaceAFileSystem
-
getRoot
public final ADirectory getRoot(String identifier)
- Specified by:
getRootin interfaceAFileSystem
-
ensureRoot
public final ADirectory ensureRoot(String identifier)
- Specified by:
ensureRootin interfaceAFileSystem
-
validateMember
public final <I extends AItem> I validateMember(I item)
- Specified by:
validateMemberin interfaceAFileSystem
-
ensureRoot
public final ADirectory ensureRoot(ARoot.Creator rootCreator, String identifier)
- Specified by:
ensureRootin interfaceAFileSystem
-
ensureDefaultRoot
public ADirectory ensureDefaultRoot()
Description copied from interface:AFileSystemEnsures the default root directory. May not be supported by different file system implementations.- Specified by:
ensureDefaultRootin interfaceAFileSystem- Returns:
- the root directory
-
addRoot
public final boolean addRoot(ADirectory rootDirectory)
- Specified by:
addRootin interfaceAFileSystem
-
removeRoot
public final ADirectory removeRoot(String name)
- Specified by:
removeRootin interfaceAFileSystem
-
removeRoot
public final boolean removeRoot(ADirectory rootDirectory)
- Specified by:
removeRootin interfaceAFileSystem
-
accessRoots
public final <R> R accessRoots(Function<? super XGettingTable<String,ADirectory>,R> logic)
- Specified by:
accessRootsin interfaceAFileSystem
-
resolveDirectoryPath
public final ADirectory resolveDirectoryPath(String[] pathElements, int offset, int length)
- Specified by:
resolveDirectoryPathin interfaceAResolving
-
ensureDirectoryPath
public final ADirectory ensureDirectoryPath(String[] pathElements, int offset, int length)
- Specified by:
ensureDirectoryPathin interfaceAFileSystem
-
ensureFilePath
public final AFile ensureFilePath(String[] directoryPathElements, int offset, int length, String fileIdentifier)
- Specified by:
ensureFilePathin interfaceAFileSystem
-
assemblePath
public VarString assemblePath(ADirectory directory, VarString vs)
- Specified by:
assemblePathin interfaceAFileSystem
-
assemblePath
public VarString assemblePath(AFile file, VarString vs)
- Specified by:
assemblePathin interfaceAFileSystem
-
buildPath
public String[] buildPath(AItem item)
- Specified by:
buildPathin interfaceAFileSystem
-
createRootDirectory
public ARoot createRootDirectory(AFileSystem fileSystem, String protocol, String identifier)
- Specified by:
createRootDirectoryin interfaceARoot.Creator
-
-