public interface Introspector extends Serializable
Introspector
and delegates it the conversion.Modifier and Type | Method and Description |
---|---|
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) |
void checkClass(ObjectSchema schema, java.lang.Class javaClass, Ontology onto) throws OntologyException
schema
- The schema of the ontological elementjavaClass
- The java class associated to the ontologcal elementonto
- The Ontology that uses this IntrospectorOntologyException
- if the java class does not have the correct
structurejava.lang.Object getSlotValue(java.lang.String slotName, java.lang.Object obj, ObjectSchema schema) throws OntologyException
OntologyException
void setSlotValue(java.lang.String slotName, java.lang.Object slotValue, java.lang.Object obj, ObjectSchema schema) throws OntologyException
OntologyException
AbsAggregate externalizeAggregate(java.lang.String slotName, java.lang.Object obj, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
OntologyException
java.lang.Object internalizeAggregate(java.lang.String slotName, AbsAggregate abs, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
OntologyException
AbsObject externalizeSpecialType(java.lang.Object obj, ObjectSchema schema, java.lang.Class javaClass, Ontology referenceOnto) throws OntologyException
OntologyException
java.lang.Object internalizeSpecialType(AbsObject abs, ObjectSchema schema, java.lang.Class javaClass, Ontology referenceOnto) throws OntologyException
OntologyException