public class ReflectiveIntrospector extends Object implements Introspector
Constructor and Description |
---|
ReflectiveIntrospector() |
Modifier and Type | Method and Description |
---|---|
void |
checkClass(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.
|
AbsAggregate |
externalizeAggregate(String slotName,
Object obj,
ObjectSchema schema,
Ontology referenceOnto) |
AbsObject |
externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
protected Method |
findMethodCaseInsensitive(String name,
Class c) |
Object |
getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
Object |
internalizeAggregate(String slotName,
AbsAggregate abs,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
protected Object |
invokeAccessorMethod(Method method,
Object obj) |
protected void |
invokeSetterMethod(Method method,
Object obj,
Object value) |
protected boolean |
isAggregateObject(Object obj) |
void |
setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
protected String |
translateName(String name) |
public Object getSlotValue(String slotName, Object obj, ObjectSchema schema) throws OntologyException
getSlotValue
in interface Introspector
OntologyException
protected boolean isAggregateObject(Object obj)
protected Object invokeAccessorMethod(Method method, Object obj) throws OntologyException
OntologyException
public void setSlotValue(String slotName, Object slotValue, Object obj, ObjectSchema schema) throws OntologyException
setSlotValue
in interface Introspector
OntologyException
protected void invokeSetterMethod(Method method, Object obj, Object value) throws OntologyException
OntologyException
public void checkClass(ObjectSchema schema, 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
structureprotected Method findMethodCaseInsensitive(String name, Class c) throws OntologyException
OntologyException
public AbsAggregate externalizeAggregate(String slotName, Object obj, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
externalizeAggregate
in interface Introspector
OntologyException
public Object internalizeAggregate(String slotName, AbsAggregate abs, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
internalizeAggregate
in interface Introspector
OntologyException
public AbsObject externalizeSpecialType(Object obj, ObjectSchema schema, Class javaClass, Ontology referenceOnto) throws OntologyException
externalizeSpecialType
in interface Introspector
OntologyException
public Object internalizeSpecialType(AbsObject abs, ObjectSchema schema, Class javaClass, Ontology referenceOnto) throws OntologyException
internalizeSpecialType
in interface Introspector
OntologyException