kaos.xmlschema.classifier
Class XMLSchemaClassifier

java.lang.Object
  extended by kaos.core.csi.extension.KAoSExtensionComponentImpl
      extended by kaos.xmlschema.classifier.XMLSchemaClassifier
All Implemented Interfaces:
InstanceClassifier, KAoSExtensionComponent

public class XMLSchemaClassifier
extends KAoSExtensionComponentImpl
implements InstanceClassifier

Implementation of the XMLSchema value classifier $Revision: 1.18 $


Field Summary
 
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 instance, java.lang.Object instDesc)
          Check if the instance is in the given class range
static XMLSchemaClassifier getInstance()
           
 void setOntologyInterfaces(OntologyService ontInterfaces)
          Set OntologyService.
 
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.KAoSExtensionComponent
addOntologicalAttribute, getEnabledStatus, getName, getOntologicalAttributes, setEnabledStatus, setName, setProperties
 

Method Detail

getInstance

public static XMLSchemaClassifier getInstance()

classify

public boolean classify(java.lang.String className,
                        java.lang.Object classDesc,
                        java.lang.String instance,
                        java.lang.Object instDesc)
                 throws ClassifierException
Check if the instance is in the given class range

Specified by:
classify in interface InstanceClassifier
Parameters:
className - ontology name of the class defining the range
instance - the instance to be checked
instDesc - not used (should be passed null)
checkedPolicyType - the type of the checked policy
Returns:
True if the instance is of the specified class, false if not.
Throws:
throws - UnknownConceptException if it is not possible to obtain information about the schema
ClassifierException

setOntologyInterfaces

public void setOntologyInterfaces(OntologyService ontInterfaces)
Set OntologyService.

Specified by:
setOntologyInterfaces in interface InstanceClassifier
Parameters:
ontInterfaces - OntologyService to be used, if needed for instance classification.