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.
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
CapabilityList
public CapabilityList(CapabilityList list)
CapabilityList
protected CapabilityList()
- Only instantiated by CapabilityManager.
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.