public class ReflectiveIntrospector extends java.lang.Object implements Introspector
Constructor and Description |
---|
ReflectiveIntrospector() |
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) |
public java.lang.Object getSlotValue(java.lang.String slotName, java.lang.Object obj, ObjectSchema schema) throws OntologyException
getSlotValue
in interface Introspector
OntologyException
public void setSlotValue(java.lang.String slotName, java.lang.Object slotValue, java.lang.Object obj, ObjectSchema schema) throws OntologyException
setSlotValue
in interface Introspector
OntologyException
public void checkClass(ObjectSchema schema, java.lang.Class javaClass, Ontology onto) throws OntologyException
checkClass
in interface Introspector
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
structurepublic AbsAggregate externalizeAggregate(java.lang.String slotName, java.lang.Object obj, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
externalizeAggregate
in interface Introspector
OntologyException
public java.lang.Object internalizeAggregate(java.lang.String slotName, AbsAggregate abs, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
internalizeAggregate
in interface Introspector
OntologyException
public AbsObject externalizeSpecialType(java.lang.Object obj, ObjectSchema schema, java.lang.Class javaClass, Ontology referenceOnto) throws OntologyException
externalizeSpecialType
in interface Introspector
OntologyException
public java.lang.Object internalizeSpecialType(AbsObject abs, ObjectSchema schema, java.lang.Class javaClass, Ontology referenceOnto) throws OntologyException
internalizeSpecialType
in interface Introspector
OntologyException