net.java.rdf.sommer
Class SesameMapper.FilterFieldsSerialiser
java.lang.Object
net.java.rdf.sommer.SesameMapper.FilterFieldsSerialiser
- All Implemented Interfaces:
- RdfSerialiser
- Enclosing class:
- SesameMapper
class SesameMapper.FilterFieldsSerialiser
- extends java.lang.Object
- implements RdfSerialiser
filter for fields that have given annotations
Note: this is used by findFromCifpConstructor (perhaps the class should be inernal to the method)
also: this should be more subtle: if fields are private and in a superclass, then should we find a solution?
Field Summary |
(package private) rdf[] |
filterAnn
|
(package private) int |
resnum
|
(package private) java.util.HashMap<rdf,org.openrdf.model.Value> |
result
|
Method Summary |
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. |
(package private) java.util.HashMap<rdf,org.openrdf.model.Value> |
solution()
|
(package private) boolean |
solved()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
filterAnn
rdf[] filterAnn
result
java.util.HashMap<rdf,org.openrdf.model.Value> result
resnum
int resnum
SesameMapper.FilterFieldsSerialiser
public SesameMapper.FilterFieldsSerialiser(rdf[] annotations)
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.
solved
boolean solved()
solution
java.util.HashMap<rdf,org.openrdf.model.Value> solution()