Package org.eclipse.serializer.afs.types
Class AFile.Default
- java.lang.Object
-
- org.eclipse.serializer.afs.types.AItem.Base
-
- org.eclipse.serializer.afs.types.AItem.Abstract
-
- org.eclipse.serializer.afs.types.AFile.Default
-
- Enclosing interface:
- AFile
public static class AFile.Default extends AItem.Abstract implements AFile
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.afs.types.AFile
AFile.Default, AFile.Observer, AFile.Wrapper
-
Nested classes/interfaces inherited from interface org.eclipse.serializer.afs.types.AItem
AItem.Abstract, AItem.Base, AItem.Wrapper
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDefault(ADirectory parent, String identifier)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AFileSystemfileSystem()<C extends Consumer<? super AFile.Observer>>
CiterateObservers(C logic)ADirectoryparent()The directory (identifying container) in which this item is located and in which no other item can have the sameAItem.identifier()as this item.booleanregisterObserver(AFile.Observer observer)booleanremoveObserver(AFile.Observer observer)-
Methods inherited from class org.eclipse.serializer.afs.types.AItem.Abstract
identifier, mutex
-
Methods inherited from class org.eclipse.serializer.afs.types.AItem.Base
toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.serializer.afs.types.AFile
defaultUser, ensureExists, exists, isEmpty, isUsed, name, size, toPath, toPathString, tryUseReading, tryUseReading, tryUseWriting, tryUseWriting, type, useReading, useReading, useWriting, useWriting
-
Methods inherited from interface org.eclipse.serializer.afs.types.AItem
identifier
-
-
-
-
Constructor Detail
-
Default
protected Default(ADirectory parent, String identifier)
-
-
Method Detail
-
parent
public final ADirectory parent()
Description copied from interface:AItemThe directory (identifying container) in which this item is located and in which no other item can have the sameAItem.identifier()as this item.- Specified by:
parentin interfaceAItem- Returns:
- the item's parent directory.
- See Also:
AItem.identifier(),AItem.toPathString()
-
fileSystem
public final AFileSystem fileSystem()
- Specified by:
fileSystemin interfaceAItem
-
registerObserver
public final boolean registerObserver(AFile.Observer observer)
- Specified by:
registerObserverin interfaceAFile
-
removeObserver
public final boolean removeObserver(AFile.Observer observer)
- Specified by:
removeObserverin interfaceAFile
-
iterateObservers
public final <C extends Consumer<? super AFile.Observer>> C iterateObservers(C logic)
- Specified by:
iterateObserversin interfaceAFile
-
-