kaos.ontology.classifier
Class GenericOntClassifier

java.lang.Object
  extended by kaos.core.csi.extension.KAoSExtensionComponentImpl
      extended by kaos.ontology.classifier.OntInstanceClassifier
          extended by kaos.ontology.classifier.GenericOntClassifier
All Implemented Interfaces:
InstanceClassifier, KAoSExtensionComponent

public class GenericOntClassifier
extends OntInstanceClassifier
implements InstanceClassifier

Implementation of the OntInstance classifier $Revision: 1.14 $


Field Summary
 
Fields inherited from class kaos.ontology.classifier.OntInstanceClassifier
_cachedClasses, _dirProxy
 
Fields inherited from class kaos.core.csi.extension.KAoSExtensionComponentImpl
_associatedOntTypes, _componentName
 
Method Summary
 boolean classify(java.lang.String className, java.lang.Object classDesc, java.lang.String instanceName, java.lang.Object instDesc)
          Check if the instance is in of the given class
static GenericOntClassifier getInstance()
           
 
Methods inherited from class kaos.ontology.classifier.OntInstanceClassifier
getOntClassDescription, getOntInstanceDescription, setOntologyInterfaces
 
Methods inherited from class kaos.core.csi.extension.KAoSExtensionComponentImpl
addOntologicalAttribute, getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setName, setProperties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface kaos.core.csi.extension.classification.InstanceClassifier
setOntologyInterfaces
 
Methods inherited from interface kaos.core.csi.extension.KAoSExtensionComponent
addOntologicalAttribute, getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setName, setProperties
 

Method Detail

getInstance

public static GenericOntClassifier getInstance()

classify

public boolean classify(java.lang.String className,
                        java.lang.Object classDesc,
                        java.lang.String instanceName,
                        java.lang.Object instDesc)
                 throws ClassifierException
Description copied from interface: InstanceClassifier
Check if the instance is in of the given class

Specified by:
classify in interface InstanceClassifier
Parameters:
className - name of the class (as url to the ontology concept)
classDesc - the optional class description
instDesc - the optional instance description
Returns:
True if the instance is of the specified class, false if not.
Throws:
ClassifierException