|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.umu.jasb.compiler.Compiler10
public class Compiler10
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
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 |
---|
public Compiler10(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 className) throws java.io.IOException, java.lang.ClassNotFoundException
className
- This is the name of the class
java.lang.ClassNotFoundException
- In the case of the class will not found
java.io.IOException
private java.util.ArrayList getClassesOfPackage(java.lang.String packageName) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
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.ClassNotFoundException
public 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 |