org.umu.jasb.compiler
Class Compiler11

java.lang.Object
  extended by org.umu.jasb.compiler.Compiler11

public class Compiler11
extends java.lang.Object

 This classes is the statical compiler that offer the alignment process from object-oriented classes to OWL
 ontologies for conforming the TBox of the ontology.
 

The usage of this application is the following: Sintax: [java -jar jasb.jar [classFolder][packageName][ontologyURL]{pathOutput} [Class Folder] is the folder which contains the classes used for the transformation. The format for the class list is the following: floder1;folder2;....;folderN Example: ./ or c:/compiling/data;c:/compiling/actions [PackageName] This is the package name associated to this folder. [OntologyURL] THis is the URL used for the namespace of the generated OWL file [PathOutput] is an optionaly parameter in witch the output folder is specified.. If it is not specified the output is showed in the standard output An example: java -jar jasb.jar c:/compiling/classes/umu/data umu.data http://www.um.es/exampleC c:/out

Author:
Jose Maria Alcaraz-Calero jmalcaraz@um.es - University of Murcia

Constructor Summary
Compiler11(java.lang.String[] args)
          This is the default constrcutor of the compiler
 
Method Summary
private static java.util.List<java.lang.Class> findClasses(java.io.File directory, java.lang.String packageName)
          Recursive method used to find all classes in a given directory and subdirs.
private  java.util.Collection<java.lang.Class> getClasses(java.lang.String folderName, java.lang.String packageName)
          This is an auxiliary method which obtain a Class object from the assocaited name
static void main(java.lang.String[] args)
          This is the entry point to the compiler
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Compiler11

public Compiler11(java.lang.String[] args)
This is the default constrcutor of the compiler

Parameters:
args - These are the parameters received through command line execution.
Method Detail

getClasses

private java.util.Collection<java.lang.Class> getClasses(java.lang.String folderName,
                                                         java.lang.String packageName)
                                                  throws java.io.IOException,
                                                         java.lang.ClassNotFoundException
This is an auxiliary method which obtain a Class object from the assocaited name

Parameters:
folderName - This is the folder of the class
Returns:
This is the list of the Class object associated to this name
Throws:
java.lang.ClassNotFoundException - In the case of the class will not found
java.io.IOException

findClasses

private static java.util.List<java.lang.Class> findClasses(java.io.File directory,
                                                           java.lang.String packageName)
                                                    throws java.lang.ClassNotFoundException
Recursive method used to find all classes in a given directory and subdirs.

Parameters:
directory - The base directory
packageName - The package name for classes found inside the base directory
Returns:
The classes
Throws:
java.lang.ClassNotFoundException

main

public static void main(java.lang.String[] args)
This is the entry point to the compiler

Parameters:
args - these are the command line parameters. See the javadoc of this classes for more information.