public final class CmdBuilder extends Object
Constructor and Description |
---|
CmdBuilder(Command cmd,
boolean conf)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
CmdBuilder |
arg(int arg)
Adds the specified argument.
|
CmdBuilder |
arg(String key,
int arg)
Adds an argument with an optional prefix.
|
CmdBuilder |
args()
Returns a string representation of all arguments.
|
boolean |
conf()
Returns the confidential flag.
|
CmdBuilder |
init()
Initializes the builder with the class name of the command in upper case.
|
CmdBuilder |
init(String string)
Initializes the builder with the specified string.
|
String |
toString() |
CmdBuilder |
xquery(int arg)
Adds the specified argument as XQuery string.
|
public CmdBuilder(Command cmd, boolean conf)
cmd
- commandconf
- confidential flagpublic CmdBuilder init()
public CmdBuilder init(String string)
string
- command stringpublic CmdBuilder args()
public CmdBuilder xquery(int arg)
arg
- argument indexpublic boolean conf()
public CmdBuilder arg(int arg)
arg
- argument indexpublic CmdBuilder arg(String key, int arg)
key
- optional keyword prefixarg
- argument indexCopyright © 2005–2015 BaseX Team. All rights reserved.