FileDocCategorySizeDatePackage
ValidCommandsList.javaAPI DocGlassfish v2 API3444Fri May 04 22:25:22 BST 2007com.sun.enterprise.cli.framework

ValidCommandsList

public class ValidCommandsList extends Object implements Serializable
The class holds the list of ValidCommand's
version
$Revision: 1.4 $

Fields Summary
private HashMap
validCommands
Constructors Summary
public ValidCommandsList()
Creates new ValidCommandsList

    
        
      
    
        validCommands = new HashMap();
    
Methods Summary
public voidaddCommand(ValidCommand command)
Adds the ValidCommand to ValidCommandsList

param
command The Valid command to be added to the list

        validCommands.put(command.getName(), command);
    
public java.util.IteratorgetCommands()
Return the list of ValidCommand's

        return validCommands.values().iterator();
    
public ValidCommandgetValidCommand(java.lang.String commandName)
Returns the ValidCommand that macthes the parameter command name

param
commandName The name of the command that should be checked in the list
return
ValidCommand The ValidCommand object

        return (ValidCommand) validCommands.get(commandName);
    
public voidremoveAllCommands()
Removes all commands from this list

        validCommands.clear();
    
public intsize()
Return the number of commands in the list

        return validCommands.size();