org.entityfs.impl
Interface EntityViewImplementation
- All Superinterfaces:
- Comparable<EntityView>, Deletable, EntityView, Lockable, Named, Observable, ReadLockable, ReadWriteLockable, WriteLockable
- All Known Subinterfaces:
- DirectoryImplementation, DirectoryViewImplementation, EFileImplementation, EntityAcceptingEntityImplementation<T>, EntityAcceptingEntityViewImplementation<T>, EntityImplementation, SymbolicLinkImplementation, SymbolicLinkViewImplementation
- All Known Implementing Classes:
- AbstractEntityAcceptingEntityImpl, AbstractEntityAcceptingEntityView, AbstractEntityImpl, AbstractEntityViewImpl, DirectoryImpl, DirectoryViewImpl, FileImpl, SymbolicLinkImpl, SymbolicLinkViewImpl
public interface EntityViewImplementation
- extends EntityView
This is the interface for a EntityView
implementation. It contains
methods that are only used by file system implementations; not by file system
clients. An EntityView
object can always be cast to a EntityViewImplementation
object.
The methods in this interface should only be used by file system and
capability implementations.
- Since:
- 1.0
- Author:
- Karl Gustafsson
- In_jar:
- entityfs-core
Methods inherited from interface org.entityfs.EntityView |
canRead, canWrite, copy, copy, copyAttributes, createLock, disconnect, getCapability, getFileSystem, getLastModified, getParent, getType, getViewed, getViewedEntity, isConnected, isRootDirectory, isValid, lock, rename, setLastModified, supportsCapability, touch |
getObserverList
List<EntityObserver> getObserverList()
- Get the list of
EntityObserver
:s that are registered for this
entity. The returned list should be immutable.
- Returns:
- The list of registered
EntityObserver
:s.
getAbsoluteLocationNoLocking
AbsoluteLocation getAbsoluteLocationNoLocking()
- Get the entity's absolute location in the file system without bothering
about locking. This is used for methods like
toString
or for
trace logging when it is not essential that the location returned is
correct.
- Returns:
- An absolute location, probably the entity's.
getFileSystemImplementation
FileSystemImplementation getFileSystemImplementation()
- Get the file system cast to
FileSystemImplementation
. Convenient
alternative to having to cast the result from
EntityView.getFileSystem()
.
- Returns:
- The file system.
getNameNoLocking
String getNameNoLocking()
- Get the name without bothering to have a lock on the entity. This is used
for methods like
toString
or for trace logging when it is not
essential that the name returned is correct.
- Returns:
- A name, probably the entity's.