|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ncl.cs.instantsoap.commandlineprocessor.commandLine.CommandLine<Value>
public class CommandLine<Value>
The data needed to construct a command-line.
Command-line templates are typically parameterised over variables where as concrete command-lines are parameterised over strings.
Constructor Summary | |
---|---|
CommandLine()
Create a new instance with an empty list of arguments and a null executable and working directory. |
|
CommandLine(String workingDirectory,
String executable,
Argument<Value>... arguments)
Create a new instance with the specified property values. |
|
CommandLine(String workingDirectory,
String executable,
List<Argument<Value>> arguments)
Create a new instance with the specified property values. |
Method Summary | |
---|---|
void |
addArgument(Argument<Value> argument)
Add an argument to the end of the arguments list. |
boolean |
equals(Object o)
|
List<Argument<Value>> |
getArguments()
Get the arguments list. |
String |
getExecutable()
Get the name of the executable. |
String |
getWorkingDirectory()
Get the working directory that the application will run relative to. |
int |
hashCode()
|
void |
removeArgument(Argument<Value> argument)
Remove the first occurance of an argument from the arguments list. |
void |
setArguments(List<Argument<Value>> arguments)
Set the arguments list. |
void |
setExecutable(String executable)
Set the name of the executable. |
void |
setWorkingDirectory(String workingDirectory)
Set the working directory that the application will run relative to. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandLine()
public CommandLine(String workingDirectory, String executable, List<Argument<Value>> arguments)
workingDirectory
- the working directory for the excutableexecutable
- the name of the executable to runarguments
- a List
of Argument
spublic CommandLine(String workingDirectory, String executable, Argument<Value>... arguments)
workingDirectory
- the working directory for the excutableexecutable
- the name of the executable to runarguments
- Argument
s for the command lineMethod Detail |
---|
public String getWorkingDirectory()
public void setWorkingDirectory(String workingDirectory)
workingDirectory
- the new working directory namepublic String getExecutable()
public void setExecutable(String executable)
executable
- the name of the executablepublic List<Argument<Value>> getArguments()
List
of Argument
s defining this
command-linepublic void setArguments(List<Argument<Value>> arguments)
arguments
- the new List
of Argument
spublic void addArgument(Argument<Value> argument)
argument
- the Argument
to addpublic void removeArgument(Argument<Value> argument)
argument
- the Argument
to removepublic boolean equals(Object o)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |