|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.opends.server.util.cli.CommandBuilder
public class CommandBuilder
Class used to be able to generate the non interactive mode.
Constructor Summary | |
---|---|
CommandBuilder(java.lang.String commandName)
The constructor for the CommandBuilder. |
|
CommandBuilder(java.lang.String commandName,
java.lang.String subcommandName)
The constructor for the CommandBuilder. |
Method Summary | |
---|---|
void |
addArgument(Argument argument)
Adds an argument to the list of the command builder. |
void |
addObfuscatedArgument(Argument argument)
Adds an argument whose values must be obfuscated (passwords for instance). |
void |
append(CommandBuilder builder)
Appends the arguments of another command builder to this command builder. |
void |
clearArguments()
Clears the arguments. |
java.util.List<Argument> |
getArguments()
Returns the list of arguments. |
boolean |
removeArgument(Argument argument)
Removes the provided argument from this CommandBuilder. |
java.lang.String |
toString()
Returns the String representation of this command builder (i.e. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CommandBuilder(java.lang.String commandName)
commandName
- the command name.public CommandBuilder(java.lang.String commandName, java.lang.String subcommandName)
commandName
- the command name.subcommandName
- the subcommand name.Method Detail |
---|
public void addArgument(Argument argument)
argument
- the argument to be added.public void addObfuscatedArgument(Argument argument)
argument
- the argument to be added.public boolean removeArgument(Argument argument)
argument
- the argument to be removed.
true
if the attribute was present and removed and
false
otherwise.public void append(CommandBuilder builder)
builder
- the CommandBuilder to append.public java.lang.String toString()
toString
in class java.lang.Object
public void clearArguments()
public java.util.List<Argument> getArguments()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |