org.entityfs.cap.symlink.ram.adapter
Class RamSymbolicLinkAdapter

java.lang.Object
  extended by org.entityfs.impl.impl.adapter.AbstractRWEntityAdapter<RamFileSystemAdapter,RamDirectoryAdapter>
      extended by org.entityfs.ram.AbstractRamEntityAdapter
          extended by org.entityfs.cap.symlink.ram.adapter.RamSymbolicLinkAdapter
All Implemented Interfaces:
SymbolicLinkAdapter, EntityAdapter

public class RamSymbolicLinkAdapter
extends AbstractRamEntityAdapter
implements SymbolicLinkAdapter


Constructor Summary
RamSymbolicLinkAdapter(RamFileSystemAdapter fs, RamDirectoryAdapter parent, String name, EntityLocation<?> targetLocation)
           
 
Method Summary
 EntityType getEntityType()
          Get the EntityType for this entity.
 T getFileSystemAdapter()
          Get the FileSystemAdapter for the file system where the entity is.
 EntityLocation<?> getTargetLocation()
          Get the link target.
 void init()
          This implementation does nothing.
 void setLastModified(long time)
          Override the default implementation.
 
Methods inherited from class org.entityfs.ram.AbstractRamEntityAdapter
canRead, canWrite, create, delete, exists, getLastModified, rename
 
Methods inherited from class org.entityfs.impl.impl.adapter.AbstractRWEntityAdapter
getName, getParent, setName, setParent
 
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
 

Constructor Detail

RamSymbolicLinkAdapter

public RamSymbolicLinkAdapter(RamFileSystemAdapter fs,
                              RamDirectoryAdapter parent,
                              String name,
                              EntityLocation<?> targetLocation)
Method Detail

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.