hudson.plugins.tfs.commands
Class GetWorkspaceMappingsCommand

java.lang.Object
  extended by hudson.plugins.tfs.commands.AbstractCommand
      extended by hudson.plugins.tfs.commands.GetWorkspaceMappingsCommand
All Implemented Interfaces:
Command, ParseableCommand<java.util.List<WorkspaceMapping>>

public class GetWorkspaceMappingsCommand
extends AbstractCommand
implements ParseableCommand<java.util.List<WorkspaceMapping>>

Retrieves the workspace mappings.

Author:
redsolo

Constructor Summary
GetWorkspaceMappingsCommand(ServerConfigurationProvider config, java.lang.String workspace)
           
 
Method Summary
 MaskedArgumentListBuilder getArguments()
          Returns the arguments to be sent to the TF command line client
 java.util.List<WorkspaceMapping> parse(java.io.Reader consoleReader)
          Returns data from parsing the command line client output in reader
 
Methods inherited from class hudson.plugins.tfs.commands.AbstractCommand
addLoginArgument, addServerArgument, getConfig
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GetWorkspaceMappingsCommand

public GetWorkspaceMappingsCommand(ServerConfigurationProvider config,
                                   java.lang.String workspace)
Method Detail

getArguments

public MaskedArgumentListBuilder getArguments()
Description copied from interface: Command
Returns the arguments to be sent to the TF command line client

Specified by:
getArguments in interface Command
Returns:
arguments for the TF tool

parse

public java.util.List<WorkspaceMapping> parse(java.io.Reader consoleReader)
                                       throws java.text.ParseException,
                                              java.io.IOException
Description copied from interface: ParseableCommand
Returns data from parsing the command line client output in reader

Specified by:
parse in interface ParseableCommand<java.util.List<WorkspaceMapping>>
Parameters:
consoleReader - reader containing the output from the command line client
Returns:
parsed data
Throws:
java.text.ParseException - thrown if there was a problem parsing the data
java.io.IOException - thrown if there was a problem reading the data from the reader


Copyright © 2009. All Rights Reserved.