org.filteredpush.rdf.handler
Class RdfBeanHandler
java.lang.Object
org.filteredpush.rdf.handler.RdfBeanHandler
public class RdfBeanHandler
- extends java.lang.Object
Takes an RdfBean implementation object and creates a jena model from it based
on xml configuration that serves as a description for the model.
- Author:
- dlowery
|
Constructor Summary |
RdfBeanHandler(java.lang.Class<?> clazz)
|
RdfBeanHandler(java.lang.Class<?> clazz,
java.io.InputStream in)
The constructor takes the class of the RdfBean implementation and the
xml configuration file to use when constructing a model from instances
of that class. |
RdfBeanHandler(java.lang.Class<?> clazz,
ModelDescriptor md)
|
|
Method Summary |
com.hp.hpl.jena.rdf.model.Model |
createJenaModel(RdfBean topLevelObj,
java.lang.String baseUri)
Creates a jena model from the top level object provided as an argument and uses the
base uri as the identifier common to all local resources. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RdfBeanHandler
public RdfBeanHandler(java.lang.Class<?> clazz)
throws java.lang.Exception
- Throws:
java.lang.Exception
RdfBeanHandler
public RdfBeanHandler(java.lang.Class<?> clazz,
java.io.InputStream in)
throws java.lang.Exception
- The constructor takes the class of the RdfBean implementation and the
xml configuration file to use when constructing a model from instances
of that class.
- Parameters:
clazz - configXml -
- Throws:
java.lang.Exception
RdfBeanHandler
public RdfBeanHandler(java.lang.Class<?> clazz,
ModelDescriptor md)
throws java.lang.Exception
- Throws:
java.lang.Exception
createJenaModel
public com.hp.hpl.jena.rdf.model.Model createJenaModel(RdfBean topLevelObj,
java.lang.String baseUri)
throws java.lang.IllegalArgumentException,
java.lang.IllegalAccessException,
java.lang.reflect.InvocationTargetException,
java.lang.Exception
- Creates a jena model from the top level object provided as an argument and uses the
base uri as the identifier common to all local resources.
- Parameters:
topLevelObj - baseUri -
- Returns:
- Jena Model
- Throws:
java.lang.IllegalArgumentException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.Exception