|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Proc
org.basex.core.Command
org.basex.core.cmd.ACreate
org.basex.core.cmd.Add
public final class Add
Evaluates the 'add' command and adds a document to a collection.
Note that the constructors of this class have changed with Version 7.0:
the target path and file name have been merged and are now specified
as first argument.
Field Summary |
---|
Fields inherited from class org.basex.core.Command |
---|
args, context, in, mprop, out, perf, prop |
Fields inherited from class org.basex.core.Proc |
---|
listen, updating |
Constructor Summary | |
---|---|
Add(java.lang.String path)
Constructor, specifying a target path. |
|
Add(java.lang.String path,
java.lang.String input)
Constructor, specifying a target path and an input. |
Method Summary | |
---|---|
void |
build(CmdBuilder cb)
Builds a string representation from the command. |
protected double |
prog()
Returns a progress value (0 - 1). |
protected boolean |
run()
Executes the command and serializes the result (internal call). |
protected java.lang.String |
tit()
Returns short information on this process. |
Methods inherited from class org.basex.core.cmd.ACreate |
---|
create, databases, drop, newData, sourceToIO, stoppable, supportsProg |
Methods inherited from class org.basex.core.Command |
---|
close, databases, error, execute, execute, getOption, getOption, info, info, result, run, run, setInput, setInput, toString, updated, updating |
Methods inherited from class org.basex.core.Proc |
---|
abort, checkStop, det, detail, listen, proc, progress, registered, registered, startTimeout, stop, stopTimeout, title |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Add(java.lang.String path)
Command.setInput(InputStream)
.
Note that the constructors of this class have changed with Version 7.0:
the target path and file name have been merged and are now specified
as first argument.
path
- target path, optionally terminated by a new file namepublic Add(java.lang.String path, java.lang.String input)
path
- target path, optionally terminated by a new file name.
If null
, the name of the input will be set as path.input
- input file or XML stringMethod Detail |
---|
protected boolean run()
Command
run
in class Command
public void build(CmdBuilder cb)
Command
build
in class Command
cb
- command builderprotected java.lang.String tit()
Proc
tit
in class Proc
protected double prog()
Proc
prog
in class Proc
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |