kaos.ontology.matching
Class InstanceClassifierFactoryImpl

java.lang.Object
  extended by kaos.ontology.matching.InstanceClassifierFactoryImpl
All Implemented Interfaces:
InstanceClassifierFactory

public final class InstanceClassifierFactoryImpl
extends java.lang.Object
implements InstanceClassifierFactory


Constructor Summary
InstanceClassifierFactoryImpl()
           
 
Method Summary
 InstanceClassifier getInstance(java.lang.String propertyName)
          Instantiate an InstanceClassifier for the specified property name.
 ServiceProperties getServiceProperties()
          Obtain the properties of the service.
 void initialize(ServiceProperties env)
           
protected static void printDebugString(java.lang.String msg, int loggerDisplayLevel)
          A utility method to print a String.
 void setInstance(java.lang.String propertyName, InstanceClassifier classifier)
          Puts an InstanceClassifier for the specified property.
 void setServiceProperties(ServiceProperties props)
          Set the properties of the service.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InstanceClassifierFactoryImpl

public InstanceClassifierFactoryImpl()
Method Detail

setInstance

public void setInstance(java.lang.String propertyName,
                        InstanceClassifier classifier)
Description copied from interface: InstanceClassifierFactory
Puts an InstanceClassifier for the specified property.

Specified by:
setInstance in interface InstanceClassifierFactory
Parameters:
propertyName - The String specifying the property, for which a classifier is requested.

getInstance

public InstanceClassifier getInstance(java.lang.String propertyName)
                               throws InstanceClassifierInitializationException
Instantiate an InstanceClassifier for the specified property name.

Specified by:
getInstance in interface InstanceClassifierFactory
Parameters:
propertyName - The String specifying the property, for which a classifier is requested.
Returns:
InstanceClassifier an instance of the requested instance classifier, or null, if the factory did not have enough data to instantiate one.
Throws:
InstanceClassifierInitializationException - is thrown if the instantiation of the classifier was not successful, details will be provided in the exception's message.

getServiceProperties

public ServiceProperties getServiceProperties()
                                       throws ServiceException,
                                              ServiceFailure
Obtain the properties of the service.

Returns:
the properties of the service.
Throws:
ServiceException
ServiceFailure

setServiceProperties

public void setServiceProperties(ServiceProperties props)
                          throws ServiceException,
                                 ServiceFailure
Set the properties of the service.

Parameters:
props - containing a set of the properties of the service.
Throws:
ServiceException
ServiceFailure

initialize

public void initialize(ServiceProperties env)
                throws ServiceException
Throws:
ServiceException

printDebugString

protected static void printDebugString(java.lang.String msg,
                                       int loggerDisplayLevel)
A utility method to print a String. Add the name of the class printing the String.

Parameters:
msg - The String to be printed.