org.apache.jetspeed.om.registry.base
Class BaseCapabilityMap

java.lang.Object
  extended byorg.apache.jetspeed.om.registry.base.BaseCapabilityMap
All Implemented Interfaces:
CapabilityMap, java.io.Serializable

public class BaseCapabilityMap
extends java.lang.Object
implements CapabilityMap, java.io.Serializable

Simple bean-like implementation of the CapabilityMap

Version:
$Id: BaseCapabilityMap.java,v 1.4 2005/03/21 18:21:37 sgala Exp $
Author:
Stephan Hesmer, RaphaŽl Luta
See Also:
Serialized Form

Constructor Summary
BaseCapabilityMap()
           
 
Method Summary
 void addCapability(java.lang.String name)
          Adds the given capability
 boolean contains(java.lang.String capability)
          Checks if the argument capability is included in this map
 boolean containsAll(CapabilityMap map)
          Checks if the all the elements of argument capability map are included in the current one
 boolean equals(java.lang.Object object)
          Implements the equals operation so that 2 elements are equal if all their member values are equal.
 java.util.Iterator getCapabilities()
          Returns an enumeration of all capabilities a client is capabale of.
 java.util.Vector getCaps()
           
 void removeCapability(java.lang.String name)
          Removes the given capability
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseCapabilityMap

public BaseCapabilityMap()
Method Detail

equals

public boolean equals(java.lang.Object object)
Implements the equals operation so that 2 elements are equal if all their member values are equal.


getCapabilities

public java.util.Iterator getCapabilities()
Description copied from interface: CapabilityMap
Returns an enumeration of all capabilities a client is capabale of.

Specified by:
getCapabilities in interface CapabilityMap
Returns:
an enumeration of all capabilities

addCapability

public void addCapability(java.lang.String name)
Description copied from interface: CapabilityMap
Adds the given capability

Specified by:
addCapability in interface CapabilityMap
Parameters:
name - the name of the new capability

removeCapability

public void removeCapability(java.lang.String name)
Description copied from interface: CapabilityMap
Removes the given capability

Specified by:
removeCapability in interface CapabilityMap
Parameters:
name - the name of the capability to be removed

contains

public boolean contains(java.lang.String capability)
Checks if the argument capability is included in this map

Specified by:
contains in interface CapabilityMap
Returns:
true if the capability is supported

containsAll

public boolean containsAll(CapabilityMap map)
Checks if the all the elements of argument capability map are included in the current one

Specified by:
containsAll in interface CapabilityMap
Parameters:
map - a CapabilityMap implementation to test
Returns:
true is all the elements the argument map are included in the current map.

getCaps

public java.util.Vector getCaps()


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.