org.basex
Class BaseX

java.lang.Object
  extended by org.basex.BaseXClient
      extended by org.basex.BaseX

public final class BaseX
extends BaseXClient

This is the starter class for the stand-alone console mode. It overwrites the BaseXClient to allow local database operations. Add the '-h' option to get a list on all available command-line arguments.

Author:
Workgroup DBIS, University of Konstanz 2005-07, ISC License, Christian Gruen

Constructor Summary
BaseX()
           
 
Method Summary
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.String string, 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 byte[] inf(java.lang.String string, java.lang.Object... ext)
          Global method, replacing all % characters in the input string by the specified extension objects, which can be byte arrays or any other object that can be cast to string.
static java.lang.String info(java.lang.String string, java.lang.Object... ext)
          Global method, replacing all % characters (see inf(String, Object...).
static void main(java.lang.String[] args)
          Main method, launching the stand-alone console mode.
static void out(java.lang.Object string, java.lang.Object... ext)
          Global method for printing information to the standard output.
static void outln(java.lang.Object string, 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

BaseX

public BaseX()
Method Detail

debug

public static boolean debug(java.lang.Exception ex)
Global method for printing the exception stack trace if the Prop.debug flag is set.

Parameters:
ex - exception
Returns:
always false

debug

public static void debug(java.lang.String string,
                         java.lang.Object... ext)
Global method for printing debug information if the Prop.debug flag is set.

Parameters:
string - debug string
ext - text optional extensions

err

public static void err(java.lang.String string,
                       java.lang.Object... ext)
Global method for printing information to the standard output.

Parameters:
string - debug string
ext - text optional extensions

errln

public static void errln(java.lang.Object obj,
                         java.lang.Object... ext)
Global method for printing information to the standard output.

Parameters:
obj - error string
ext - text optional extensions

inf

public static byte[] inf(java.lang.String string,
                         java.lang.Object... ext)
Global method, replacing all % characters in the input string by the specified extension objects, which can be byte arrays or any other object that can be cast to string.

Parameters:
string - string to be extended
ext - text text extensions
Returns:
token

info

public static java.lang.String info(java.lang.String string,
                                    java.lang.Object... ext)
Global method, replacing all % characters (see inf(String, Object...).

Parameters:
string - string to be extended
ext - text text extensions
Returns:
extended string

main

public static void main(java.lang.String[] args)
Main method, launching the stand-alone console mode. Use -h to get a list of all available command-line arguments.

Parameters:
args - command-line arguments

out

public static void out(java.lang.Object string,
                       java.lang.Object... ext)
Global method for printing information to the standard output.

Parameters:
string - debug string
ext - text optional extensions

outln

public static void outln(java.lang.Object string,
                         java.lang.Object... ext)
Global method for printing information to the standard output.

Parameters:
string - debug string
ext - text optional extensions