org.entityfs.cap.compression.impl
Class CompressionEnablingFileSystemDelegate

java.lang.Object
  extended by org.entityfs.support.lang.ObjectProxySupport<FileSystemDelegate>
      extended by org.entityfs.impl.AbstractFileSystemDelegateProxy
          extended by org.entityfs.cap.compression.impl.CompressionEnablingFileSystemDelegate
All Implemented Interfaces:
FileSystemDelegate

public class CompressionEnablingFileSystemDelegate
extends AbstractFileSystemDelegateProxy


Constructor Summary
CompressionEnablingFileSystemDelegate(FileSystemDelegate proxied)
           
 
Method Summary
<T extends EntityCapability>
T
getCapabilityForEntityOrNull(EntityImplementation ei, EntityCapabilityType<T> type)
          Get the entity capability object for the requested capability.
<T extends FileSystemCapability>
T
getCapabilityOrNull(FileSystemCapabilityType<T> type)
          Get the file system capability object for the requested capability.
 Set<FileSystemCapabilityType<?>> getSupportedCapabilities()
          Get the set of supported file system capability types for the file system.
 Set<EntityCapabilityType<?>> getSupportedEntityCapabilities()
          Get the set of supported entity capability types for this file system.
 TriState supportsCapability(FileSystemCapabilityType<?> type)
          Does the file system support the specified capability?
 TriState supportsCapabilityForEntity(EntityImplementation ei, EntityCapabilityType<?> type)
          Does the file system or capability provider support the requested entity capability for the supplied entity?
 TriState supportsCapabilityForEntityType(EntityType et, EntityCapabilityType<?> type)
          Does the file system or capability provider support the requested entity capability for entities of the supplied type?
 
Methods inherited from class org.entityfs.impl.AbstractFileSystemDelegateProxy
close, getFileSystemAdapter, getOwner, init, setOwner, toString, validateEntityName
 
Methods inherited from class org.entityfs.support.lang.ObjectProxySupport
equals, getProxied, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompressionEnablingFileSystemDelegate

public CompressionEnablingFileSystemDelegate(FileSystemDelegate proxied)
Method Detail

supportsCapability

public TriState supportsCapability(FileSystemCapabilityType<?> type)
Description copied from interface: FileSystemDelegate
Does the file system support the specified capability?

Parameters:
type - The file system capability type identifier.
Returns:
YES, NO or DONT_CARE

getCapabilityOrNull

public <T extends FileSystemCapability> T getCapabilityOrNull(FileSystemCapabilityType<T> type)
Description copied from interface: FileSystemDelegate
Get the file system capability object for the requested capability. This may be called with unsupported file system capability types. In that case, the method should return null.

Parameters:
type - The file system capability type.
Returns:
The file system capability object or null if the file system capability is not supported by this capability visitor.

getSupportedCapabilities

public Set<FileSystemCapabilityType<?>> getSupportedCapabilities()
Description copied from interface: FileSystemDelegate
Get the set of supported file system capability types for the file system.

Returns:
The set of supported file system capability types.

supportsCapabilityForEntity

public TriState supportsCapabilityForEntity(EntityImplementation ei,
                                            EntityCapabilityType<?> type)
Description copied from interface: FileSystemDelegate
Does the file system or capability provider support the requested entity capability for the supplied entity?

Parameters:
ei - The entity.
type - The entity capability type.
Returns:
YES, NO or DONT_CARE
See Also:
FileSystem.supportsCapabilityForEntity(org.entityfs.EntityView, EntityCapabilityType)

supportsCapabilityForEntityType

public TriState supportsCapabilityForEntityType(EntityType et,
                                                EntityCapabilityType<?> type)
Description copied from interface: FileSystemDelegate
Does the file system or capability provider support the requested entity capability for entities of the supplied type?

This method should return true also if the file system supports the capability for only some of the entities of the supplied type.

Parameters:
et - The entity type.
type - The entity capability type.
Returns:
YES, NO or DONT_CARE.
See Also:
FileSystem.supportsCapabilityForEntityType(EntityType, EntityCapabilityType)

getCapabilityForEntityOrNull

public <T extends EntityCapability> T getCapabilityForEntityOrNull(EntityImplementation ei,
                                                                   EntityCapabilityType<T> type)
Description copied from interface: FileSystemDelegate
Get the entity capability object for the requested capability. This may be called with unsupported entity capability types. In that case, the method should return null.

Parameters:
ei - The entity.
type - The entity capability type.
Returns:
The entity capability object or null if the entity capability is not supported by this capability visitor.

getSupportedEntityCapabilities

public Set<EntityCapabilityType<?>> getSupportedEntityCapabilities()
Description copied from interface: FileSystemDelegate
Get the set of supported entity capability types for this file system.

Returns:
The set of supported entity capability types.