JavaClassTransformator.java revision 30
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscopackage impl.owls.grounding;
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscoimport org.mindswap.owl.OWLClass;
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscoimport org.mindswap.owl.OWLFactory;
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscoimport org.mindswap.owl.OWLIndividual;
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscoimport org.mindswap.owl.OWLKnowledgeBase;
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscoimport org.mindswap.owl.OWLTransformator;
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco/**
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco *
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco * @author Michael D�nzer, University of Zurich
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco * @date 20.03.2007
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Kosco */
830cfaa577b220f9b2155dbd65e48c9a94a3238aLubos Koscopublic abstract class JavaClassTransformator implements OWLTransformator {
protected OWLClass owlClass;
protected Class javaClass;
protected OWLKnowledgeBase kb;
public JavaClassTransformator() {
super();
this.kb = OWLFactory.createKB();
}
public OWLClass getOWLClass() {
return owlClass;
}
public Class getJavaClass() {
return javaClass;
}
private Class classFromString(String className) {
Class claz;
try {
claz = Class.forName(className);
} catch (ClassNotFoundException e) {
claz = null;
}
return claz;
}
public abstract Object transformFromOWL(OWLIndividual ind);
public abstract OWLIndividual transformToOWL(Object object);
}