class BeanIntrospector extends Object implements Introspector
Modifier and Type | Field and Description |
---|---|
private Map<SlotKey,SlotAccessData> |
accessors |
private static String |
ENUM_SLOT_NAME |
private static long |
serialVersionUID |
Constructor and Description |
---|
BeanIntrospector() |
Modifier and Type | Method and Description |
---|---|
(package private) void |
addAccessors(Map<SlotKey,SlotAccessData> accessors) |
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 slotValue,
ObjectSchema schema,
Ontology referenceOnto) |
AbsObject |
externalizeSpecialType(Object obj,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
Object |
getSlotValue(String slotName,
Object obj,
ObjectSchema schema) |
Object |
internalizeAggregate(String slotName,
AbsAggregate absAggregate,
ObjectSchema schema,
Ontology referenceOnto) |
Object |
internalizeSpecialType(AbsObject abs,
ObjectSchema schema,
Class javaClass,
Ontology referenceOnto) |
private Object |
invokeGetterMethod(Method method,
Object obj) |
private void |
invokeSetterMethod(Method method,
Object obj,
Object value,
Class clazz) |
void |
setSlotValue(String slotName,
Object slotValue,
Object obj,
ObjectSchema schema) |
private static final long serialVersionUID
private static final String ENUM_SLOT_NAME
private Map<SlotKey,SlotAccessData> accessors
void addAccessors(Map<SlotKey,SlotAccessData> accessors)
private Object invokeGetterMethod(Method method, Object obj) throws OntologyException
OntologyException
private void invokeSetterMethod(Method method, Object obj, Object value, Class clazz) throws OntologyException
OntologyException
public void checkClass(ObjectSchema schema, Class javaClass, Ontology onto) throws OntologyException
Introspector
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 Object getSlotValue(String slotName, Object obj, ObjectSchema schema) throws OntologyException
getSlotValue
in interface Introspector
OntologyException
public void setSlotValue(String slotName, Object slotValue, Object obj, ObjectSchema schema) throws OntologyException
setSlotValue
in interface Introspector
OntologyException
public AbsAggregate externalizeAggregate(String slotName, Object slotValue, ObjectSchema schema, Ontology referenceOnto) throws OntologyException
externalizeAggregate
in interface Introspector
OntologyException
public Object internalizeAggregate(String slotName, AbsAggregate absAggregate, 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