net.java.rdf.sommer
Class SesameMapper.MappingSerialiser

java.lang.Object
  extended by net.java.rdf.sommer.SesameMapper.MappingSerialiser
All Implemented Interfaces:
RdfSerialiser
Enclosing class:
SesameMapper

 class SesameMapper.MappingSerialiser
extends java.lang.Object
implements RdfSerialiser

take an unmapped object and add all its relations to the graph


Nested Class Summary
(package private)  class SesameMapper.MappingSerialiser.SecondIteration
          This second Iteration will go through the fields and add the relations to the database
 
Field Summary
(package private)  java.util.HashMap<java.lang.reflect.Field,java.lang.Object> fieldInfo
           
(package private)  org.openrdf.model.Resource name
           
(package private)  java.lang.Object thiz
           
 
Constructor Summary
SesameMapper.MappingSerialiser(java.lang.Object thiz, org.openrdf.model.Resource name)
           
 
Method Summary
 boolean isInterestingField(java.lang.reflect.Field fld)
          This is method will usually be called first.
 void mapTheFields()
           
 java.lang.Object processField(java.lang.Object sourceObj, java.lang.reflect.Field f, java.lang.Object val)
          This method will process the field.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

thiz

java.lang.Object thiz

name

org.openrdf.model.Resource name

fieldInfo

java.util.HashMap<java.lang.reflect.Field,java.lang.Object> fieldInfo
Constructor Detail

SesameMapper.MappingSerialiser

public SesameMapper.MappingSerialiser(java.lang.Object thiz,
                                      org.openrdf.model.Resource name)
Method Detail

isInterestingField

public boolean isInterestingField(java.lang.reflect.Field fld)
Description copied from interface: RdfSerialiser
This is method will usually be called first.

Specified by:
isInterestingField in interface RdfSerialiser
Returns:
true if the field one that we want to work with?

processField

public java.lang.Object processField(java.lang.Object sourceObj,
                                     java.lang.reflect.Field f,
                                     java.lang.Object val)
Description copied from interface: RdfSerialiser
This method will process the field.

Specified by:
processField in interface RdfSerialiser
Returns:
if the field value needs to be changed, this will do it, otherwise it should return null Field values may need to be wrapped around another object.

mapTheFields

public void mapTheFields()