|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.umu.jasb.compiler.Compiler11
public class Compiler11
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
| 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 |
|---|
public Compiler11(java.lang.String[] args)
args - These are the parameters received through command line execution.| Method Detail |
|---|
private java.util.Collection<java.lang.Class> getClasses(java.lang.String folderName,
java.lang.String packageName)
throws java.io.IOException,
java.lang.ClassNotFoundException
folderName - This is the folder of the class
java.lang.ClassNotFoundException - In the case of the class will not found
java.io.IOException
private static java.util.List<java.lang.Class> findClasses(java.io.File directory,
java.lang.String packageName)
throws java.lang.ClassNotFoundException
directory - The base directorypackageName - The package name for classes found inside the base directory
java.lang.ClassNotFoundExceptionpublic static void main(java.lang.String[] args)
args - these are the command line parameters. See the javadoc of this classes for more information.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||