|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.starteam.CommandProcessor
public final class CommandProcessor
A Command Processor is a class that executes a sequence of commands against a selected server, in the context of a specific project and view. The class maintains a connection to a single view instance
| Constructor Summary | |
|---|---|
CommandProcessor()
Creates a new Command Processor, ready for execution |
|
| Method Summary | |
|---|---|
void |
addListener(CommandProcessorListener listener)
adds a CommandProcessor event listener to this command processor instance Relevant events will be fired through this interface |
static boolean |
canParse(java.lang.String command)
Returns true if the specified command can be parsed by this processor |
boolean |
canReturnHeader()
Returns true if this Command can return a header along with the results false if this command will never return a header (whether or not it returns results) |
boolean |
canReturnResults()
Returns true if this Command can return a result set of 0 or more rows false if this command will never return any results. |
java.lang.String[][] |
execute(java.lang.String command)
Executes a command Throws an SDKRuntime exception if the command execution fails The error message will indicate the reason for failure. |
java.lang.String[] |
getExecutedCommands()
Returns the LIFO set of all commands executed by this processor. |
Folder |
getFolder()
Returns the folder within which this command processor is executing commands, null if not yet connected to a view Applications may register for supported events on this instance |
Project |
getProject()
Returns the project within which this command processor is executing commands, null if not yet connected to a project Applications may register for supported events on this instance |
Server |
getServer()
Returns the server against which this command processor is executing commands, null if not yet connected to a server Applications may register for supported events on this instance |
View |
getView()
Returns the view within which this command processor is executing commands, null if not yet connected to a view Applications may register for supported events on this instance |
java.lang.String[] |
parse(java.lang.String command)
Parses the command. |
java.lang.String |
toString()
Returns the command currently being executed |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CommandProcessor()
| Method Detail |
|---|
public static boolean canParse(java.lang.String command)
command - the command to be parsed
public Server getServer()
public Project getProject()
public View getView()
public Folder getFolder()
public boolean canReturnResults()
public boolean canReturnHeader()
public java.lang.String[] parse(java.lang.String command)
command - the command whose syntax needs to be validated
public java.lang.String[][] execute(java.lang.String command)
command - the command to execute
public java.lang.String[] getExecutedCommands()
public void addListener(CommandProcessorListener listener)
listener - the listener through which events will be firedpublic java.lang.String toString()
toString in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||