net.chaosserver.bilbo.textui
Class Main

java.lang.Object
  |
  +--net.chaosserver.bilbo.textui.Main

public class Main
extends Object

This is the main class to enter the text UI version of the program.

Since:
1.0

Field Summary
protected static Settings settings
          Holds a reference to the settings objects.
 
Constructor Summary
protected Main()
          Default constructor.
 
Method Summary
protected static Settings getSettings()
          Getter for Settings
protected static String getVersion()
          Returns version information from the Package object.
static void main(String[] args)
          The main method that is executed when the class is called.
protected static void setSettings(Settings settings)
          Setter for Settings
protected static void showUsage()
          Prints out the main usage file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

settings

protected static Settings settings
Holds a reference to the settings objects.

Constructor Detail

Main

protected Main()
Default constructor.

Method Detail

getSettings

protected static Settings getSettings()
Getter for Settings

Returns:
the settings object

setSettings

protected static void setSettings(Settings settings)
Setter for Settings

Parameters:
settings - the settings object

main

public static void main(String[] args)
                 throws Exception
The main method that is executed when the class is called.

Parameters:
args - The arguments.
Throws:
Exception - if something goes wrong

getVersion

protected static String getVersion()
Returns version information from the Package object.

Returns:
Version information

showUsage

protected static void showUsage()
                         throws HelpException
Prints out the main usage file.

Throws:
HelpException - if there is an error readin the usage.


Copyright © 20030415