org.entityfs.cap.metadata.util
Class ECMetadataUtil

java.lang.Object
  extended by org.entityfs.cap.metadata.util.ECMetadataUtil

public final class ECMetadataUtil
extends Object

This utility class contains static methods for working with entities that support the ECMetadata capability.

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

Since:
1.0
Author:
Karl Gustafsson
See Also:
ECNamedMetadataUtil
In_jar:
entityfs-metadata

Method Summary
static ECMetadata getCapability(EntityView ev)
          Get the ECMetadata capability for an entity.
static boolean supportsMetadata(EntityView ev)
          Check if the entity supports the ECMetadata capability.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getCapability

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

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

supportsMetadata

public static boolean supportsMetadata(EntityView ev)
Check if the entity supports the ECMetadata capability.

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