Package jade.content.onto
Interface Introspector
-
- All Superinterfaces:
Serializable,Serializable
- All Known Implementing Classes:
BCReflectiveIntrospector,CFReflectiveIntrospector,MicroIntrospector,ReflectiveIntrospector
public interface Introspector extends Serializable
This interface defines the methods to convert objects of ontological classes into/from abstract descriptors. Each ontology has anIntrospectorand delegates it the conversion.- Author:
- Federico Bergenti - Universita` di Parma
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckClass(ObjectSchema schema, 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.AbsAggregateexternalizeAggregate(String slotName, Object obj, ObjectSchema schema, Ontology referenceOnto)AbsObjectexternalizeSpecialType(Object obj, ObjectSchema schema, Class javaClass, Ontology referenceOnto)ObjectgetSlotValue(String slotName, Object obj, ObjectSchema schema)ObjectinternalizeAggregate(String slotName, AbsAggregate abs, ObjectSchema schema, Ontology referenceOnto)ObjectinternalizeSpecialType(AbsObject abs, ObjectSchema schema, Class javaClass, Ontology referenceOnto)voidsetSlotValue(String slotName, Object slotValue, Object obj, ObjectSchema schema)
-
-
-
Method Detail
-
checkClass
void checkClass(ObjectSchema schema, 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 elementjavaClass- The java class associated to the ontologcal elementonto- The Ontology that uses this Introspector- Throws:
OntologyException- if the java class does not have the correct structure
-
getSlotValue
Object getSlotValue(String slotName, Object obj, ObjectSchema schema) throws OntologyException
- Throws:
OntologyException
-
setSlotValue
void setSlotValue(String slotName, Object slotValue, Object obj, ObjectSchema schema) throws OntologyException
- Throws:
OntologyException
-
externalizeAggregate
AbsAggregate externalizeAggregate(String slotName, Object obj, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
- Throws:
OntologyException
-
internalizeAggregate
Object internalizeAggregate(String slotName, AbsAggregate abs, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
- Throws:
OntologyException
-
externalizeSpecialType
AbsObject externalizeSpecialType(Object obj, ObjectSchema schema, Class javaClass, Ontology referenceOnto) throws OntologyException
- Throws:
OntologyException
-
internalizeSpecialType
Object internalizeSpecialType(AbsObject abs, ObjectSchema schema, Class javaClass, Ontology referenceOnto) throws OntologyException
- Throws:
OntologyException
-
-