Package one.microstream.afs.types
Interface AItem
- All Known Subinterfaces:
ADirectory,ADirectory.Wrapper,AFile,AFile.Wrapper,AItem.Wrapper,AReadableFile,ARoot,AWritableFile,NioFileWrapper,NioItemWrapper,NioReadableFile,NioWritableFile,SqlFileWrapper,SqlItemWrapper,SqlReadableFile,SqlWritableFile
- All Known Implementing Classes:
ADirectory.Abstract,ADirectory.Default,AFile.Default,AFile.Wrapper.Abstract,AItem.Abstract,AItem.Base,ARoot.Default,NioFileWrapper.Abstract,NioReadableFile.Default,NioWritableFile.Default,SqlFileWrapper.Abstract,SqlReadableFile.Default,SqlWritableFile.Default
public interface AItem
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAItem.Abstractstatic classAItem.Basestatic interfaceAItem.Wrapper -
Method Summary
Modifier and Type Method Description static AItemactual(AItem item)static VarStringassembleDebugString(AItem item, VarString vs)static String[]buildItemPath(AItem item)static chardefaultSeparator()booleanexists()Queries whether the item represented by this instance actually physically exists on the underlying storage layer.AFileSystemfileSystem()Stringidentifier()The value that uniquely identifies the item locally in itsparent()directory.ADirectoryparent()The directory (identifying container) in which this item is located and in which no other item can have the sameidentifier()as this item.String[]toPath()StringtoPathString()The value that uniquely identifies the item globally in the whole file system.
-
Method Details
-
fileSystem
AFileSystem fileSystem() -
parent
ADirectory parent()The directory (identifying container) in which this item is located and in which no other item can have the sameidentifier()as this item.- Returns:
- the item's parent directory.
- See Also:
identifier(),toPathString()
-
toPathString
String toPathString()The value that uniquely identifies the item globally in the whole file system.Note that this value is usually a combination of the identifiers of
parent()directories and the localidentifier(), but such a relation is not mandatory.- Returns:
- the item's globally unique identifier.
- See Also:
parent(),identifier()
-
toPath
String[] toPath() -
identifier
String identifier()The value that uniquely identifies the item locally in itsparent()directory.- Returns:
- the item's locally unique identifier.
- See Also:
parent(),toPathString()
-
exists
boolean exists()Queries whether the item represented by this instance actually physically exists on the underlying storage layer.- Returns:
- whether the item exists.
-
defaultSeparator
static char defaultSeparator() -
buildItemPath
-
assembleDebugString
-
actual
-