edu.unika.aifb.owltools.shell
Class Shell

java.lang.Object
  extended by edu.unika.aifb.owltools.tools.KAON2Tool
      extended by edu.unika.aifb.owltools.shell.Shell

public class Shell
extends KAON2Tool

Implements an experimental shell to work with OWL files (beta)


Field Summary
 
Fields inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
m_connection, printer
 
Constructor Summary
Shell()
           
 
Method Summary
 void compile()
          starts the shell after having processed all arguments
 java.lang.String eval(java.lang.String cmd)
          evaluates the user input
static void main(java.lang.String[] args)
          to be started from the command line as an extra tool
 java.lang.String name()
          name of the owl tool
static void printUsage()
          prints the command line parameters and a short info
 boolean processArguments(java.lang.String[] args)
          processes command line arguments
 
Methods inherited from class edu.unika.aifb.owltools.tools.KAON2Tool
endConnection, loadOntology, printUsageError
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Shell

public Shell()
Method Detail

name

public java.lang.String name()
name of the owl tool

Specified by:
name in class KAON2Tool
Returns:
the name of the tool

processArguments

public boolean processArguments(java.lang.String[] args)
processes command line arguments

Specified by:
processArguments in class KAON2Tool

main

public static void main(java.lang.String[] args)
to be started from the command line as an extra tool

Parameters:
args - command line arguments

printUsage

public static void printUsage()
prints the command line parameters and a short info


compile

public void compile()
starts the shell after having processed all arguments


eval

public java.lang.String eval(java.lang.String cmd)
evaluates the user input

Parameters:
cmd - user input
Returns:
the output on the command line