org.entityfs.cap.symlink.ram.adapter
Class RamSymbolicLinkAdapter
java.lang.Object
org.entityfs.impl.impl.adapter.AbstractRWEntityAdapter<RamFileSystemAdapter,RamDirectoryAdapter>
org.entityfs.ram.AbstractRamEntityAdapter
org.entityfs.cap.symlink.ram.adapter.RamSymbolicLinkAdapter
- All Implemented Interfaces:
- SymbolicLinkAdapter, EntityAdapter
public class RamSymbolicLinkAdapter
- extends AbstractRamEntityAdapter
- implements SymbolicLinkAdapter
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.entityfs.impl.adapter.EntityAdapter |
canRead, canWrite, create, delete, exists, getFileSystemAdapter, getLastModified, getName, getParent, init, rename |
RamSymbolicLinkAdapter
public RamSymbolicLinkAdapter(RamFileSystemAdapter fs,
RamDirectoryAdapter parent,
String name,
EntityLocation<?> targetLocation)
getTargetLocation
public EntityLocation<?> getTargetLocation()
- Description copied from interface:
SymbolicLinkAdapter
- Get the link target.
- Specified by:
getTargetLocation
in interface SymbolicLinkAdapter
- Returns:
- The link target.
setLastModified
public void setLastModified(long time)
- Override the default implementation. Symbolic links do not keep track of
modification times.
- Specified by:
setLastModified
in interface EntityAdapter
- Overrides:
setLastModified
in class AbstractRamEntityAdapter
- Parameters:
time
- The new last modification time.
getEntityType
public EntityType getEntityType()
- Description copied from interface:
EntityAdapter
- Get the
EntityType
for this entity.
- Specified by:
getEntityType
in interface EntityAdapter
- Returns:
- The
EntityType
for this entity.
init
public void init()
- This implementation does nothing. Override if necessary.
- Specified by:
init
in interface EntityAdapter
getFileSystemAdapter
public T getFileSystemAdapter()
- Description copied from interface:
EntityAdapter
- Get the
FileSystemAdapter
for the file system where the entity
is.
- Specified by:
getFileSystemAdapter
in interface EntityAdapter
- Returns:
- The entity adapter's
FileSystemAdapter
.