|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xenei.jena.entities.impl.handlers.EntityHandler
public class EntityHandler
An ObjectHandler that creates EntityManager managed entities from RDFResources and visa versa.
| Constructor Summary | |
|---|---|
EntityHandler(EntityManager entityManager,
Class<?> valueClass)
Constructor. |
|
| Method Summary | |
|---|---|
com.hp.hpl.jena.rdf.model.RDFNode |
createRDFNode(Object obj)
Create an RDFNode representation for the subject class. |
boolean |
equals(Object o)
|
int |
hashCode()
|
Object |
parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
Use the entity manager to create an instance of the valueClass from the resource. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public EntityHandler(EntityManager entityManager,
Class<?> valueClass)
entityManager - The EntityManager to use.valueClass - The Subject annotated class to create.| Method Detail |
|---|
public com.hp.hpl.jena.rdf.model.RDFNode createRDFNode(Object obj)
createRDFNode in interface ObjectHandlerobj - The object to represent
public Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
parseObject in interface ObjectHandlernode - The RDFNode to wrap with the valueClass.
public String toString()
toString in class Objectpublic boolean equals(Object o)
equals in class Objectpublic int hashCode()
hashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||