|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--jade.content.onto.ReflectiveIntrospector
|
+--jade.content.onto.BCReflectiveIntrospector
Backward Compatible reflective introspector. This Introspector
uses Java Reflection to translate java objects to/from abstract
descriptors as the ReflectiveIntrospector does, but
it assumes the accessors methods for aggregate slots to be in the
"old JADE style" i.e.
For every aggregate slot named XXX,
with elements of type T, the Java class must have
two accessible methods, with the following signature:
Iterator getAllXXX()
void addXXX(T t)
| Constructor Summary | |
BCReflectiveIntrospector()
|
|
| 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. |
AbsObject |
externalise(java.lang.Object obj,
ObjectSchema schema,
java.lang.Class javaClass,
Ontology referenceOnto)
Translate an object of a class representing an element in an ontology into a proper abstract descriptor. |
java.lang.Object |
internalise(AbsObject abs,
ObjectSchema schema,
java.lang.Class javaClass,
Ontology referenceOnto)
Translate an abstract descriptor into an object of a proper class representing an element in an ontology |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BCReflectiveIntrospector()
| Method Detail |
public AbsObject externalise(java.lang.Object obj,
ObjectSchema schema,
java.lang.Class javaClass,
Ontology referenceOnto)
throws OntologyException
externalise in interface Introspectorexternalise in class ReflectiveIntrospectorobj - The Object to be translatedschema - The schema for the ontological element this object
is an instance of.javaClass - The class of the Object to be translatedreferenceOnto - The reference ontology in the context of
this translation.
OntologyException - If some error occurs during the translation
public java.lang.Object internalise(AbsObject abs,
ObjectSchema schema,
java.lang.Class javaClass,
Ontology referenceOnto)
throws UngroundedException,
OntologyException
internalise in interface Introspectorinternalise in class ReflectiveIntrospectorabs - The abstract descriptor to be translatedschema - The schema for the ontological element this abstract descriptor
is an instance of.javaClass - The class of the Object to be produced by the translationreferenceOnto - The reference ontology in the context of
this translation.
UngroundedException - If the abstract descriptor to be translated
contains a variable
OntologyException - If some error occurs during the translation
public void checkClass(ObjectSchema schema,
java.lang.Class javaClass,
Ontology onto)
throws OntologyException
checkClass in interface IntrospectorcheckClass in class ReflectiveIntrospectorschema - The schema of the ontological elementjavaClass - The java class associated to the ontologcal elementonto - The Ontology that uses this Introspector
OntologyException - if the java class does not have the correct
structure
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||