com.anabas.sharedlet
Class CapabilityList

java.lang.Object
  |
  +--com.anabas.sharedlet.CapabilityList

public class CapabilityList
extends java.lang.Object

Stores a list of capabilities represented as Strings. Used by the DefaultCapabilitiesManager and SharedletRCUtil utility class.


Constructor Summary
protected CapabilityList()
          Only instantiated by CapabilityManager.
  CapabilityList(CapabilityList list)
           
 
Method Summary
 void addCapability(java.lang.String name)
          Adds a capability to the list.
 void disableCapability(java.lang.String name)
          Disables a capability
 void enableCapability(java.lang.String name)
          Enables the capability
 java.util.Enumeration getCapabilities()
           
 boolean isCapableOf(java.lang.String name)
           
 void removeCapability(java.lang.String name)
          Removes a capability from the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CapabilityList

public CapabilityList(CapabilityList list)

CapabilityList

protected CapabilityList()
Only instantiated by CapabilityManager.
Method Detail

addCapability

public void addCapability(java.lang.String name)
Adds a capability to the list.
Parameters:
name - Name of the capability

removeCapability

public void removeCapability(java.lang.String name)
Removes a capability from the list.
Parameters:
name - Name of the capability to remove.

enableCapability

public void enableCapability(java.lang.String name)
Enables the capability
Parameters:
name - The name of the capability to enable

disableCapability

public void disableCapability(java.lang.String name)
Disables a capability
Parameters:
name - The name of the capability to enable.

getCapabilities

public java.util.Enumeration getCapabilities()
Returns:
A vector list of all capability names in the list.

isCapableOf

public boolean isCapableOf(java.lang.String name)
Returns:
The value of a particular capability. If the capability does not exist in the list then false is returned.