net.java.rdf.sommer
Class SesameMapper.MappingSerialiser
java.lang.Object
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
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
|
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 |
thiz
java.lang.Object thiz
name
org.openrdf.model.Resource name
fieldInfo
java.util.HashMap<java.lang.reflect.Field,java.lang.Object> fieldInfo
SesameMapper.MappingSerialiser
public SesameMapper.MappingSerialiser(java.lang.Object thiz,
org.openrdf.model.Resource name)
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()