org.umu.jasb.compiler
Class Compiler10

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

public class Compiler10
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:

  java -jar jasb.jar;[yourClasses] [classList][ontologyURL]{pathOutput}

  [youClasses] Remember: your classes need to be loaded!!!!
  [classList] This is the list with classes used for the transformation.
              The format for the class list is the following: class1;class2;....;classN
              Example: org.umu.test.data.Person:org.umu.test.data.User
  [OntologyURL] This is the URL used for the namespace of the generated OWL file
  [PathOutput] This is an optionaly parameter in witch the path of the output will be saved.
               If it is not specified the output is showed in the standard output

 The following line could be used to execute the example A distributed with it.

 java -jar jasb.jar;.\classes org.umu.jaxsb.test.testA.data.Person:org.umu.jaxsb.test.testA.data.User http://www.um.es/exampleA
 

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

Constructor Summary
Compiler10(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 className)
          This is an auxiliary method which obtain a Class object from the assocaited name
private  java.util.ArrayList getClassesOfPackage(java.lang.String packageName)
           
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

Compiler10

public Compiler10(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 className)
                                                  throws java.io.IOException,
                                                         java.lang.ClassNotFoundException
This is an auxiliary method which obtain a Class object from the assocaited name

Parameters:
className - This is the name 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

getClassesOfPackage

private java.util.ArrayList getClassesOfPackage(java.lang.String packageName)
                                         throws java.lang.ClassNotFoundException,
                                                java.io.IOException
Throws:
java.lang.ClassNotFoundException
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.