net.java.rdf.sommer
Class SesameMapper.IdFinderSerialiser

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

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

Tries to find the Identity of an object by looking for identiy or inverse functional properties.


Field Summary
(package private)  org.openrdf.model.Resource resultId
           
 
Constructor Summary
SesameMapper.IdFinderSerialiser()
           
 
Method Summary
 org.openrdf.model.Resource getId()
           
 boolean isInterestingField(java.lang.reflect.Field fld)
          This is method will usually be called first.
 java.lang.Object processField(java.lang.Object sourceObj, java.lang.reflect.Field f, java.lang.Object value)
          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

resultId

org.openrdf.model.Resource resultId
Constructor Detail

SesameMapper.IdFinderSerialiser

SesameMapper.IdFinderSerialiser()
Method Detail

getId

public org.openrdf.model.Resource getId()

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 value)
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.