|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.parse.CmdBuilder
public final class CmdBuilder
This class simplifies the composition of the string representation of a database command.
Constructor Summary | |
---|---|
CmdBuilder(Command c)
Constructor. |
Method Summary | |
---|---|
CmdBuilder |
arg(int arg)
Adds the specified argument. |
CmdBuilder |
arg(java.lang.String key,
int arg)
Adds an argument with an optional prefix. |
CmdBuilder |
args()
Returns a string representation of all arguments. |
CmdBuilder |
init()
Initializes the builder with the class name of the command in upper case. |
CmdBuilder |
init(java.lang.String s)
Initializes the builder with the specified string. |
java.lang.String |
toString()
|
CmdBuilder |
xquery(int arg)
Adds the specified argument as XQuery string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public CmdBuilder(Command c)
c
- commandMethod Detail |
---|
public CmdBuilder init()
public CmdBuilder init(java.lang.String s)
s
- command string
public CmdBuilder args()
public CmdBuilder xquery(int arg)
arg
- argument index
public CmdBuilder arg(int arg)
arg
- argument index
public CmdBuilder arg(java.lang.String key, int arg)
key
- optional keyword prefixarg
- argument index
public 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 |