org.basex
Class BaseX

java.lang.Object
  extended by org.basex.core.Main
      extended by org.basex.BaseX
Direct Known Subclasses:
BaseXClient

public class BaseX
extends Main

This is the starter class for the stand-alone console mode. It executes all commands locally.

Author:
BaseX Team 2005-12, BSD License, Christian Gruen

Field Summary
 
Fields inherited from class org.basex.core.Main
console, context, newline, out, session, verbose
 
Constructor Summary
BaseX(java.lang.String... args)
          Constructor.
 
Method Summary
static void main(java.lang.String... args)
          Main method, launching the standalone mode.
protected  void parseArguments(java.lang.String... args)
          Parses the command-line arguments, specified by the user.
protected  boolean sa()
          Tests if this client is stand-alone.
protected  Session session()
          Returns the session.
 
Methods inherited from class org.basex.core.Main
console, execute, execute, quit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseX

public BaseX(java.lang.String... args)
      throws java.io.IOException
Constructor.

Parameters:
args - command-line arguments
Throws:
java.io.IOException - I/O exception
Method Detail

main

public static void main(java.lang.String... args)
Main method, launching the standalone mode. Command-line arguments are listed with the -h argument.

Parameters:
args - command-line arguments

sa

protected boolean sa()
Tests if this client is stand-alone.

Returns:
stand-alone flag

session

protected Session session()
                   throws java.io.IOException
Description copied from class: Main
Returns the session.

Specified by:
session in class Main
Returns:
session
Throws:
java.io.IOException - I/O exception

parseArguments

protected final void parseArguments(java.lang.String... args)
                             throws java.io.IOException
Description copied from class: Main
Parses the command-line arguments, specified by the user.

Specified by:
parseArguments in class Main
Parameters:
args - command-line arguments
Throws:
java.io.IOException - I/O exception