org.entityfs.util.cap.entity
Class ECUriResolvableUtil

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

public final class ECUriResolvableUtil
extends Object

A utility class with static methods for working with ECUriResolvable 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:
ECUriResolvable

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

Method Detail

getCapability

public static ECUriResolvable getCapability(EntityView ev)
Get the ECUriResolvable 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 ECUriResolvable capability.

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

getUri

public static URI getUri(EntityView ev)
                  throws UnsupportedCapabilityException
Get a java.net.URI object that references the entity in the backing file system.

Returns:
A java.net.URI object that references the entity.
Throws:
UnsupportedCapabilityException - If the entity does not support the capability.
See Also:
ECUriResolvable.getUri()