org.entityfs.util.cap.entity
Class ECFileResolvableUtil

java.lang.Object
  extended by org.entityfs.util.cap.entity.ECFileResolvableUtil

public final class ECFileResolvableUtil
extends Object

A utility class with static methods for working with ECFileResolvable entity capabilities.

The methods in this class will use the locking strategy for utility classes described in EntityLock.

Since:
1.0
Author:
Karl Gustafsson
See Also:
ECFileResolvable

Method Summary
static ECFileResolvable getCapability(EntityView ev)
          Get the ECFileResolvable capability for an entity.
static File getFileObject(EntityView ev)
          Get a java.io.File object that references the entity in the backing file system.
static boolean supportsCapability(EntityView ev)
          Check if the supplied entity supports the ECFileResolvable capability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCapability

public static ECFileResolvable getCapability(EntityView ev)
                                      throws UnsupportedCapabilityException
Get the ECFileResolvable capability for an entity.

Parameters:
ev - The entity to get the capability for.
Returns:
The capability object for the entity.
Throws:
UnsupportedCapabilityException - If the entity does not support the capability.

supportsCapability

public static boolean supportsCapability(EntityView ev)
Check if the supplied entity supports the ECFileResolvable capability.

Parameters:
ev - The entity to investigate.
Returns:
true if the entity supports the capability, false if not.

getFileObject

public static File getFileObject(EntityView ev)
                          throws UnsupportedCapabilityException
Get a java.io.File object that references the entity in the backing file system.

Parameters:
ev - The entity.
Returns:
A java.io.File object that references the entity.
Throws:
UnsupportedCapabilityException - If the entity does not support the capability.
See Also:
ECFileResolvable.getFileObject()