nl.toolforge.karma.core.cmd
Class CommandDescriptorMap

java.lang.Object
  extended bynl.toolforge.karma.core.cmd.CommandDescriptorMap

public class CommandDescriptorMap
extends java.lang.Object

Author:
W.M. Oosterom

Constructor Summary
CommandDescriptorMap()
           
 
Method Summary
 void add(CommandDescriptor newDescriptor)
           
 void addAll(CommandDescriptorMap anotherMap)
          Adds all objects in anotherMap to this CommandDescriptorMap.
 CommandDescriptor get(java.lang.String name)
          Returns a CommandDescriptor instance identified by the key name.
 java.util.Collection keySet()
          Returns a Collection view of all keys in this CommandDescriptorMap.
 int size()
          Returns the number of keys in this CommandDescriptorMap.
 java.util.Collection values()
          Returns this CommandDescriptorMaps values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandDescriptorMap

public CommandDescriptorMap()
Method Detail

add

public void add(CommandDescriptor newDescriptor)
Parameters:
newDescriptor -

addAll

public void addAll(CommandDescriptorMap anotherMap)
Adds all objects in anotherMap to this CommandDescriptorMap.

Parameters:
anotherMap - A CommandDescriptorMap instance.

values

public java.util.Collection values()
Returns this CommandDescriptorMaps values.


keySet

public java.util.Collection keySet()
Returns a Collection view of all keys in this CommandDescriptorMap.

Returns:
A Collection view of all keys in this CommandDescriptorMap.

get

public CommandDescriptor get(java.lang.String name)
Returns a CommandDescriptor instance identified by the key name.

Parameters:
name - A command descriptor name. Acts as key for the CommandDescriptorMap.
Returns:

size

public int size()
Returns the number of keys in this CommandDescriptorMap.

Returns:
The number of keys in this CommandDescriptorMap.


Copyright © 2002-2004 Toolforge. All Rights Reserved.