kaos.xmlschema.classifier
Class XMLSchemaClassifier

java.lang.Object
  extended by kaos.xmlschema.classifier.XMLSchemaClassifier
All Implemented Interfaces:
InstanceClassifier, KAoSInstanceClassifier

public class XMLSchemaClassifier
extends java.lang.Object
implements KAoSInstanceClassifier

$Revision: 1.7 $


Constructor Summary
XMLSchemaClassifier()
           
XMLSchemaClassifier(OntologyInterfaces proxy)
           
 
Method Summary
 boolean classify(java.lang.Object className, java.lang.Object instance, java.lang.Object classDesc, java.lang.Object instDesc)
          Check if the instance is in the given class range This is a more generic method that typecasts the input arguments and then calls the specific method.
 boolean classify(java.lang.String className, java.lang.String instance, ClassDescription classDesc, KAoSInstance instDesc)
          Check if the instance is in the given class range
 void init()
          Initializes the specific instance classifier for instance loading necessary ontologies, etc.
 void setOntologyInterfaces(OntologyInterfaces ontInterfaces)
          Set OntologyInterfaces.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSchemaClassifier

public XMLSchemaClassifier(OntologyInterfaces proxy)

XMLSchemaClassifier

public XMLSchemaClassifier()
Method Detail

classify

public boolean classify(java.lang.String className,
                        java.lang.String instance,
                        ClassDescription classDesc,
                        KAoSInstance instDesc)
                 throws InstanceClassifierInitializationException,
                        UnknownConceptException
Check if the instance is in the given class range

Specified by:
classify in interface KAoSInstanceClassifier
Parameters:
className - ontology name of the class defining the range
instance - the instance to be checked
classDesc - not used (should be passed null)
instDesc - not used (should be passed null)
Returns:
True if the instance is of the specified class, false if not.
Throws:
throws - InstanceClassifierInitializationException if the initialization of the classifier was not successful, details will be provided in the return string
InstanceClassifierInitializationException
UnknownConceptException

setOntologyInterfaces

public void setOntologyInterfaces(OntologyInterfaces ontInterfaces)
Set OntologyInterfaces.

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

classify

public boolean classify(java.lang.Object className,
                        java.lang.Object instance,
                        java.lang.Object classDesc,
                        java.lang.Object instDesc)
                 throws InstanceClassifierInitializationException,
                        InstanceClassifierClassCastException,
                        UnknownConceptException
Check if the instance is in the given class range This is a more generic method that typecasts the input arguments and then calls the specific method. An exception would be thrown if

Specified by:
classify in interface InstanceClassifier
Parameters:
className - ontology name of the class defining the range
instance - the instance to be checked
classDesc - not used (should be passed null)
instDesc - not used (should be passed null)
Returns:
True if the instance is of the specified class, false if not.
Throws:
throws - InstanceClassifierInitializationException if the initialization of the classifier was not successful, details will be provided in the return string
InstanceClassifierInitializationException
InstanceClassifierClassCastException
UnknownConceptException

init

public void init()
          throws InstanceClassifierInitializationException
Initializes the specific instance classifier for instance loading necessary ontologies, etc.

Specified by:
init in interface InstanceClassifier
Throws:
InstanceClassifierInitializationException - if the initialization of the instance classifier was not successful, details will be provided in the return string