|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.basex.core.Progress
org.basex.core.AbstractProcess
org.basex.core.Process
public abstract class Process
This class provides the architecture for all internal command implementations. It evaluates queries that are sent by the GUI, the client or the standalone version.
Field Summary | |
---|---|
java.lang.String[] |
args
Command arguments. |
Constructor Summary | |
---|---|
Process(int p,
java.lang.String... a)
Constructor. |
Method Summary | |
---|---|
java.lang.String |
args()
Returns the list of arguments. |
boolean |
data()
Returns if the current command needs a data reference for processing. |
boolean |
error(java.lang.String msg,
java.lang.Object... ext)
Adds the error message to the message buffer info . |
boolean |
execute(Context ctx)
Executes a command. |
void |
execute(Context ctx,
PrintOutput out)
Executes the process and serializes the results. |
java.lang.String |
info()
Returns the query information as a string. |
void |
info(PrintOutput out)
Returns process info. |
boolean |
info(java.lang.String str,
java.lang.Object... ext)
Adds information on the process execution. |
java.lang.String |
name()
Returns the class name. |
void |
output(PrintOutput out)
Serializes the textual results of a command. |
boolean |
printing()
Returns if the current command yields some output. |
Result |
result()
Returns the result set, generated by the last query. |
java.lang.String |
toString()
|
boolean |
updating()
Returns if the current command generates updates in the data structure. |
Methods inherited from class org.basex.core.Progress |
---|
checkStop, det, detail, prog, progress, progress, stop, title |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String[] args
Constructor Detail |
---|
public Process(int p, java.lang.String... a)
p
- propertiesa
- argumentsMethod Detail |
---|
public void execute(Context ctx, PrintOutput out) throws java.lang.Exception
ctx
- query contextout
- output stream
java.lang.Exception
- execution exceptionpublic final boolean execute(Context ctx)
AbstractProcess
execute
in class AbstractProcess
ctx
- context reference
public final void output(PrintOutput out) throws java.io.IOException
AbstractProcess
output
in class AbstractProcess
out
- output stream
java.io.IOException
- I/O exceptionpublic final void info(PrintOutput out) throws java.io.IOException
AbstractProcess
info
in class AbstractProcess
out
- output stream
java.io.IOException
- I/O exceptionpublic final boolean error(java.lang.String msg, java.lang.Object... ext)
info
.
msg
- error messageext
- error extension
public final boolean info(java.lang.String str, java.lang.Object... ext)
str
- information to be addedext
- extended info
public final java.lang.String info()
public final Result result()
public final boolean printing()
public final boolean data()
public final boolean updating()
public final java.lang.String args()
public final java.lang.String name()
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 |