Package org.basex.core.parse
Class CmdBuilder
java.lang.Object
org.basex.core.parse.CmdBuilder
This class simplifies the composition of the string representation of
a database command.
- Author:
- BaseX Team 2005-21, BSD License, Christian Gruen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(int arg) Adds the specified argument unchanged.arg(int arg) Adds the specified argument.Adds an argument with an optional prefix.Adds an argument with an optional prefix.args()Returns a string representation of all arguments.booleanconf()Returns the confidential flag.init()Initializes the builder with the class name of the command in upper case.Initializes the builder with the specified string.toString()
-
Constructor Details
-
CmdBuilder
Constructor.- Parameters:
cmd- commandconf- confidential flag
-
-
Method Details
-
init
Initializes the builder with the class name of the command in upper case.- Returns:
- self instance
-
init
Initializes the builder with the specified string.- Parameters:
string- command string- Returns:
- self instance
-
args
Returns a string representation of all arguments.- Returns:
- self instance
-
add
Adds the specified argument unchanged.- Parameters:
arg- argument index- Returns:
- self instance
-
conf
public boolean conf()Returns the confidential flag.- Returns:
- flag
-
arg
Adds the specified argument.- Parameters:
arg- argument index- Returns:
- self instance
-
arg
Adds an argument with an optional prefix.- Parameters:
key- optional keyword prefixarg- argument index- Returns:
- self instance
-
arg
Adds an argument with an optional prefix.- Parameters:
key- optional keyword prefixarg- argument string- Returns:
- self instance
-
toString
-