edu.stanford.smi.protegex.owl.testing
Class OWLTestLibrary
java.lang.Object
edu.stanford.smi.protegex.owl.testing.OWLTestLibrary
- public class OWLTestLibrary
- extends Object
A static utility class that manages the available OWLTests on this machine.
- Author:
- Holger Knublauch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
testMap
private static Map testMap
userDefinedClasses
private static Set userDefinedClasses
OWLTestLibrary
public OWLTestLibrary()
addOWLTestClass
public static void addOWLTestClass(Class clazz)
- A work-around method for OWLTests from outside the OWL Plugin.
Since due to a bug in the Java virtual machine these Classes
can not be found through their manifest, they need to be added
manually, preferably through a ProjectPlugin.
- Parameters:
clazz
- the Class of an OWLTest to add
createOWLTest
private static OWLTest createOWLTest(Class clazz)
getOWLTest
public static OWLTest getOWLTest(Class clazz)
getOWLTestClasses
public static Class[] getOWLTestClasses()
isOWLDLTest
public static boolean isOWLDLTest(Class clazz)
repairRDFPropertyTests
public static void repairRDFPropertyTests(RDFProperty property)
- Repairs all OWLSlotTests that are marked as AutoRepairableOWLTest on a given OWLProperty.
- Parameters:
property
- the OWLProperty to repair
repairOWLSlotTest
private static void repairOWLSlotTest(RDFPropertyTest owlSlotTest,
RDFProperty property)