Class OntologyFactory
- java.lang.Object
-
- de.uni_trier.wi2.procake.utils.ontology.OntologyFactory
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleanbind(OntologyFactoryObject implementation)Binds the given implementation.booleanbind(Object implementation)Bind an implementation to the factory.static booleancontainsOntology(String name)static OntologygetOntology(String name)static OntologygetOntologyFor(DataObject dataObject)static OntologynewOntology(String name, String path)static OntologynewOntology(String name, String path, String pathBackup)voidpostInit()Post initialization.voidreset()This method has to be implemented by every factory in order to allow a proper restart of ProCAKE.static booleanunbind(OntologyFactoryObject implementation)booleanunbind(Object implementation)Unbinds an implementation from the factory.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.uni_trier.wi2.procake.utils.composition.Factory
addParameter
-
-
-
-
Method Detail
-
bind
public static boolean bind(OntologyFactoryObject implementation)
Binds the given implementation.
-
containsOntology
public static boolean containsOntology(String name)
-
getOntologyFor
public static Ontology getOntologyFor(DataObject dataObject)
-
unbind
public static boolean unbind(OntologyFactoryObject implementation)
-
reset
public void reset()
Description copied from interface:FactoryThis method has to be implemented by every factory in order to allow a proper restart of ProCAKE. For example, this method might reset the default factory object or other stateful variables.
-
bind
public boolean bind(Object implementation)
Description copied from interface:FactoryBind an implementation to the factory.- Specified by:
bindin interfaceFactory- Parameters:
implementation- The object to bind.- Returns:
trueif the factory accept the implementation, otherwisefalse.- See Also:
Factory.bind(java.lang.Object)
-
unbind
public boolean unbind(Object implementation)
Description copied from interface:FactoryUnbinds an implementation from the factory.- Specified by:
unbindin interfaceFactory- Parameters:
implementation- The object to unbind.- Returns:
trueif the factory accept the implementation, otherwisefalse.- See Also:
Factory.unbind(java.lang.Object)
-
-