medi.util
Class MediConfig

java.lang.Object
  |
  +--medi.util.MediConfig

public class MediConfig
extends java.lang.Object

Configuration static class for Medi.


Constructor Summary
MediConfig()
          Creates a new instance of MediConfig
 
Method Summary
static java.util.Iterator analyzerClassIterator()
          Returns an iterator for analyzer classes.
static java.util.Iterator containerTypeIterator()
          Returns an iterator for container types.
static void fillAnalyzerClassTable(javax.swing.JTable table)
          Fills a table getting data from the analyzer class script file.
static void fillContainerTypeTable(javax.swing.JTable table)
          Fills a table getting data from the container type script file.
static void fillMountPointTable(javax.swing.JTable table)
          Fills a table getting data from the mount point script file.
static void fillPreviewerClassTable(javax.swing.JTable table)
          Fills a table getting data from the previewer class script file.
static void fillVolumeTypeTable(javax.swing.JTable table)
          Fills a table getting data from the volume type script file.
static java.lang.String getDbDir()
          Returns the directory in which the database is.
static java.lang.String getDbms()
          Returns the DBMS name.
static java.lang.String getDbmsAddress()
          Returns the DBMS address.
static java.lang.String getDbName()
          Returns the name of the database.
static java.lang.String getDriver()
          Returns driver class name.
static java.lang.String getPassword()
          Returns the password.
static int getPort()
          Returns the TCP port.
static java.lang.String getUserName()
          Returns the user name.
static void init()
          Initializes the class.
static java.util.Iterator mountPointIterator()
          Returns an iterator for mount points.
static java.util.Iterator previewerClassIterator()
          Returns an iterator for previewer classes.
static void saveAnalyzerClassTable(javax.swing.JTable table)
          Saves table content into the file for analyzer classes.
static void saveContainerTypeTable(javax.swing.JTable table)
          Saves table content into the file for container types..
static void saveMountPointTable(javax.swing.JTable table)
          Saves table content into the file for mount points.
static void savePreviewerClassTable(javax.swing.JTable table)
          Saves table content into the file for previewer classes.
static void saveVolumeTypeTable(javax.swing.JTable table)
          Saves table content into the file for volume types..
static java.util.Iterator volumeTypeIterator()
          Returns an iterator for volume types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediConfig

public MediConfig()
Creates a new instance of MediConfig

Method Detail

init

public static void init()
                 throws DbException
Initializes the class.

Throws:
DbException - If something goes wrong.

getDbms

public static java.lang.String getDbms()
Returns the DBMS name.

Returns:
The needed DBMS name.

getDriver

public static java.lang.String getDriver()
Returns driver class name.

Returns:
The driver class name.

getDbDir

public static java.lang.String getDbDir()
Returns the directory in which the database is.

Returns:
The database directory.

getDbmsAddress

public static java.lang.String getDbmsAddress()
Returns the DBMS address.

Returns:
The DBMS address.

getDbName

public static java.lang.String getDbName()
Returns the name of the database.

Returns:
The name of the database.

getUserName

public static java.lang.String getUserName()
Returns the user name.

Returns:
The user name.

getPassword

public static java.lang.String getPassword()
Returns the password.

Returns:
The password.

getPort

public static int getPort()
Returns the TCP port.

Returns:
The port.

mountPointIterator

public static java.util.Iterator mountPointIterator()
Returns an iterator for mount points.

Returns:
The needed iterator.

containerTypeIterator

public static java.util.Iterator containerTypeIterator()
Returns an iterator for container types.

Returns:
The needed iterator.

volumeTypeIterator

public static java.util.Iterator volumeTypeIterator()
Returns an iterator for volume types.

Returns:
The needed iterator.

analyzerClassIterator

public static java.util.Iterator analyzerClassIterator()
Returns an iterator for analyzer classes.

Returns:
The needed iterator.

previewerClassIterator

public static java.util.Iterator previewerClassIterator()
Returns an iterator for previewer classes.

Returns:
The needed iterator.

saveMountPointTable

public static void saveMountPointTable(javax.swing.JTable table)
                                throws java.io.IOException
Saves table content into the file for mount points.

Parameters:
table - The table to be saved.
Throws:
java.io.IOException - If something goes wrong.

saveContainerTypeTable

public static void saveContainerTypeTable(javax.swing.JTable table)
                                   throws java.io.IOException
Saves table content into the file for container types..

Parameters:
table - The table to be saved.
Throws:
java.io.IOException - If something goes wrong.

saveVolumeTypeTable

public static void saveVolumeTypeTable(javax.swing.JTable table)
                                throws java.io.IOException
Saves table content into the file for volume types..

Parameters:
table - The table to be saved.
Throws:
java.io.IOException - If something goes wrong.

saveAnalyzerClassTable

public static void saveAnalyzerClassTable(javax.swing.JTable table)
                                   throws java.io.IOException
Saves table content into the file for analyzer classes.

Parameters:
table - The table to be saved.
Throws:
java.io.IOException - If something goes wrong.

savePreviewerClassTable

public static void savePreviewerClassTable(javax.swing.JTable table)
                                    throws java.io.IOException
Saves table content into the file for previewer classes.

Parameters:
table - The table to be saved.
Throws:
java.io.IOException - If something goes wrong.

fillMountPointTable

public static void fillMountPointTable(javax.swing.JTable table)
Fills a table getting data from the mount point script file.

Parameters:
table - The table to be filled.

fillContainerTypeTable

public static void fillContainerTypeTable(javax.swing.JTable table)
Fills a table getting data from the container type script file.

Parameters:
table - The table to be filled.

fillVolumeTypeTable

public static void fillVolumeTypeTable(javax.swing.JTable table)
Fills a table getting data from the volume type script file.

Parameters:
table - The table to be filled.

fillAnalyzerClassTable

public static void fillAnalyzerClassTable(javax.swing.JTable table)
Fills a table getting data from the analyzer class script file.

Parameters:
table - The table to be filled.

fillPreviewerClassTable

public static void fillPreviewerClassTable(javax.swing.JTable table)
Fills a table getting data from the previewer class script file.

Parameters:
table - The table to be filled.