jade.content.onto
Interface Introspector

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
BCReflectiveIntrospector, CFReflectiveIntrospector, ReflectiveIntrospector

public interface Introspector
extends Serializable

This interface defines the methods to convert objects of ontological classes into/from abstract descriptors. Each ontology has an Introspector and delegates it the conversion.

Author:
Federico Bergenti - Universita` di Parma

Method Summary
 void checkClass(ObjectSchema schema, java.lang.Class javaClass, Ontology onto)
          Check the structure of a java class associated to an ontological element to ensure that translations to/from abstract descriptors and java objects (instances of that class) can be accomplished by this introspector.
 AbsAggregate externalizeAggregate(java.lang.String slotName, java.lang.Object obj, ObjectSchema schema, Ontology referenceOnto)
           
 AbsObject externalizeSpecialType(java.lang.Object obj, ObjectSchema schema, java.lang.Class javaClass, Ontology referenceOnto)
           
 java.lang.Object getSlotValue(java.lang.String slotName, java.lang.Object obj, ObjectSchema schema)
           
 java.lang.Object internalizeAggregate(java.lang.String slotName, AbsAggregate abs, ObjectSchema schema, Ontology referenceOnto)
           
 java.lang.Object internalizeSpecialType(AbsObject abs, ObjectSchema schema, java.lang.Class javaClass, Ontology referenceOnto)
           
 void setSlotValue(java.lang.String slotName, java.lang.Object slotValue, java.lang.Object obj, ObjectSchema schema)
           
 

Method Detail

checkClass

void checkClass(ObjectSchema schema,
                java.lang.Class javaClass,
                Ontology onto)
                throws OntologyException
Check the structure of a java class associated to an ontological element to ensure that translations to/from abstract descriptors and java objects (instances of that class) can be accomplished by this introspector.

Parameters:
schema - The schema of the ontological element
javaClass - The java class associated to the ontologcal element
onto - The Ontology that uses this Introspector
Throws:
OntologyException - if the java class does not have the correct structure

getSlotValue

java.lang.Object getSlotValue(java.lang.String slotName,
                              java.lang.Object obj,
                              ObjectSchema schema)
                              throws OntologyException
Throws:
OntologyException

setSlotValue

void setSlotValue(java.lang.String slotName,
                  java.lang.Object slotValue,
                  java.lang.Object obj,
                  ObjectSchema schema)
                  throws OntologyException
Throws:
OntologyException

externalizeAggregate

AbsAggregate externalizeAggregate(java.lang.String slotName,
                                  java.lang.Object obj,
                                  ObjectSchema schema,
                                  Ontology referenceOnto)
                                  throws OntologyException
Throws:
OntologyException

internalizeAggregate

java.lang.Object internalizeAggregate(java.lang.String slotName,
                                      AbsAggregate abs,
                                      ObjectSchema schema,
                                      Ontology referenceOnto)
                                      throws OntologyException
Throws:
OntologyException

externalizeSpecialType

AbsObject externalizeSpecialType(java.lang.Object obj,
                                 ObjectSchema schema,
                                 java.lang.Class javaClass,
                                 Ontology referenceOnto)
                                 throws OntologyException
Throws:
OntologyException

internalizeSpecialType

java.lang.Object internalizeSpecialType(AbsObject abs,
                                        ObjectSchema schema,
                                        java.lang.Class javaClass,
                                        Ontology referenceOnto)
                                        throws OntologyException
Throws:
OntologyException


These are the official JADE API. For these API backward compatibility is guaranteed accross JADE versions