|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The CapabilityMap
interface represents a list that
stores capabilities a client is capable of. It is accessed
by the portlet container to get information about the client's
capabilities.
The names of the capabilities are matched by the class variable names
of the class Capability
. To add a capability use the
class variable name and not the internally used string value.
Capability
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 |
java.util.Iterator |
getCapabilities()
Returns an enumeration of all capabilities a client is capabale of. |
void |
removeCapability(java.lang.String name)
Removes the given capability |
Method Detail |
public java.util.Iterator getCapabilities()
public void addCapability(java.lang.String name)
name
- the name of the new capabilitypublic void removeCapability(java.lang.String name)
name
- the name of the capability to be removedpublic boolean contains(java.lang.String capability)
public boolean containsAll(CapabilityMap map)
map
- a CapabilityMap implementation to test
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |