uk.org.ogsadai.tools
Class EditorBase

java.lang.Object
  extended by uk.org.ogsadai.tools.EditorBase
All Implemented Interfaces:
ServerEditor
Direct Known Subclasses:
ActivityEditor, DQPEditor, FilesEditor, GroupEditor, JDBCEditor, LoginEditor, RDFEditor, RemoteEditor, ResourceEditor, StringEditor, ViewsEditor, XMLDBEditor

public abstract class EditorBase
extends java.lang.Object
implements ServerEditor

Base class for server editors.

Author:
The OGSA-DAI Project Team

Field Summary
protected  java.io.File mConfigDir
          Configuration files directory.
 
Constructor Summary
EditorBase()
           
 
Method Summary
 void initialize(java.io.File configDir)
          Initialize.
abstract  void printSyntax()
          Print command-line syntax.
 void runClient(java.lang.String[] args)
          Run the client.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mConfigDir

protected java.io.File mConfigDir
Configuration files directory.

Constructor Detail

EditorBase

public EditorBase()
Method Detail

initialize

public void initialize(java.io.File configDir)
                throws FileNotFoundException
Initialize.

Specified by:
initialize in interface ServerEditor
Parameters:
configDir - Configuration directory.
Throws:
java.lang.IllegalArgumentException - If configDir is null.
FileNotFoundException - If configDir doesn't exist.

printSyntax

public abstract void printSyntax()
Print command-line syntax.


runClient

public void runClient(java.lang.String[] args)
               throws java.lang.Exception
Run the client.

Parameters:
args - Command-line arguments.
Throws:
java.lang.Exception - If any problems arise.