public interface PojoFactory
PojoCreator with the following characteristics:
{PojoClassSimpleName}Creator. For
example, if the POJO class name is PropertyPath then the creator
class would be named PropertyPathCreator.
create method that takes a Vertex as an argument.
void setEmail(String email) {...}
The name of the property (in this case "email") must match the local name of the RDF Property.
Alternatively, you can use a different name for the setter method and declare the RDF Property explicitly, like this:
| Modifier and Type | Method and Description |
|---|---|
<T> T |
create(Vertex v,
Class<T> type)
Create a POJO of a given type from data contained in a given vertex.
|
void |
createAll(Graph graph)
Map individuals from a graph into Java objects.
|
<T> T create(Vertex v, Class<T> type) throws KonigException
v - The vertex containing data for the POJOtype - The Java Class of the POJO to be created.KonigExceptionvoid createAll(Graph graph) throws KonigException
graph - The graph containing individuals that are to be mapped into Java objects.ParseExceptionKonigExceptionCopyright © 2019. All rights reserved.