org.entityfs
Interface Named
- All Superinterfaces:
- Lockable, ReadLockable
- All Known Subinterfaces:
- ArchiveDirectoryEntry<T,U>, ArchiveEntry<T,U>, ArchiveFileEntry<T,U>, ArchiveSymbolicLinkEntry<T,U>, Directory, DirectoryView, EFile, Entity, EntityAcceptingEntity<T>, EntityAcceptingEntityView<T>, EntityView, NamedReadableFile, PaxEntry, UstarEntry
- All Known Implementing Classes:
- AbstractArchiveEntry, ClasspathNamedReadableFile, FileReadableFile, ManualNamedReadableFile, NamedReadableFileAdapter, PaxDirectoryEntry, PaxFileEntry, PaxSymbolicLinkEntry, ReadWritableFileAdapter, TarDirectoryEntry, TarEntry, TarFileEntry, TarSymbolicLinkEntry, UrlReadableFile, UstarDirectoryEntry, UstarFileEntry, UstarSymbolicLinkEntry, ZipDirectoryEntry, ZipEntry, ZipFileEntry, ZipSymbolicLinkEntry
public interface Named
- extends ReadLockable
This interface defines something that has a name, an entity, for instance.
- Since:
- 1.0
- Author:
- Karl Gustafsson
getName
String getName()
throws IllegalStateException,
ReadLockRequiredException
- Get the name. The name of the root directory is
/
.
- Returns:
- The name of the named object.
- Throws:
IllegalStateException
- If this is called on a disconnected view.
ReadLockRequiredException
- If the client does not have a read lock
for the viewed entity or its parent.- Locks_required:
- A read lock on this entity or on its parent directory.
- Permissions_required:
- None