|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.basex.BaseXClient
org.basex.BaseX
public final class BaseX
This is the starter class for the stand-alone console mode.
It overwrites the BaseXClient to allow local database
operations. Next, it offers some utility methods which are used
throughout the project.
| Constructor Summary | |
|---|---|
BaseX()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
bug(java.lang.Object... ext)
Throws a runtime exception for unexpected exceptions. |
static boolean |
debug(java.lang.Exception ex)
Global method for printing the exception stack trace if the Prop.debug flag is set. |
static void |
debug(java.lang.Object str,
java.lang.Object... ext)
Global method for printing debug information if the Prop.debug flag is set. |
static void |
err(java.lang.String string,
java.lang.Object... ext)
Global method for printing information to the standard output. |
static void |
errln(java.lang.Object obj,
java.lang.Object... ext)
Global method for printing information to the standard output. |
static java.lang.String |
flag(boolean flag)
Returns an info message for the specified flag. |
static byte[] |
inf(java.lang.Object str,
java.lang.Object... ext)
Global method, replacing all % characters (see TokenBuilder.add(Object, Object...) for details. |
static java.lang.String |
info(java.lang.Object str,
java.lang.Object... ext)
Global method, replacing all % characters (see TokenBuilder.add(Object, Object...) for details. |
static void |
main(java.lang.String[] args)
Main method, launching the stand-alone console mode. |
static java.lang.Object |
notexpected(java.lang.Object... ext)
Throws a runtime exception for unexpected exceptions. |
static java.lang.Object |
notimplemented(java.lang.Object... ext)
Throws a runtime exception for unimplemented methods. |
static void |
out(java.lang.Object str,
java.lang.Object... ext)
Global method for printing information to the standard output. |
static void |
outln()
Global method for printing a newline. |
static void |
outln(java.lang.Object str,
java.lang.Object... ext)
Global method for printing information to the standard output. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BaseX()
| Method Detail |
|---|
public static void main(java.lang.String[] args)
-h to get a list of all available command-line
arguments.
args - command-line arguments
public static byte[] inf(java.lang.Object str,
java.lang.Object... ext)
TokenBuilder.add(Object, Object...) for details.
str - string to be extendedext - text text extensions
public static java.lang.String info(java.lang.Object str,
java.lang.Object... ext)
TokenBuilder.add(Object, Object...) for details.
str - string to be extendedext - text text extensions
public static void debug(java.lang.Object str,
java.lang.Object... ext)
Prop.debug flag is set.
str - debug stringext - text optional extensionspublic static boolean debug(java.lang.Exception ex)
Prop.debug flag is set.
ex - exception
public static void err(java.lang.String string,
java.lang.Object... ext)
string - debug stringext - text optional extensions
public static void errln(java.lang.Object obj,
java.lang.Object... ext)
obj - error stringext - text optional extensions
public static void out(java.lang.Object str,
java.lang.Object... ext)
str - output stringext - text optional extensions
public static void outln(java.lang.Object str,
java.lang.Object... ext)
str - output stringext - text optional extensionspublic static void outln()
public static java.lang.String flag(boolean flag)
flag - current flag status
public static java.lang.Object notimplemented(java.lang.Object... ext)
ext - optional extension
public static java.lang.Object notexpected(java.lang.Object... ext)
ext - optional extension
public static java.lang.String bug(java.lang.Object... ext)
ext - optional extension
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||