public class EntityHandler extends Object implements ObjectHandler
| Constructor and Description |
|---|
EntityHandler(EntityManager entityManager,
Class<?> valueClass)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
com.hp.hpl.jena.rdf.model.RDFNode |
createRDFNode(Object obj)
Create an RDFNode representation for the subject class.
|
boolean |
equals(Object o) |
int |
hashCode() |
boolean |
isEmpty(Object obj)
Returns true if the object is considered empty.
|
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() |
public EntityHandler(EntityManager entityManager, Class<?> valueClass)
entityManager - The EntityManager to use.valueClass - The Subject annotated class to create.public com.hp.hpl.jena.rdf.model.RDFNode createRDFNode(Object obj)
createRDFNode in interface ObjectHandlerobj - The object to representpublic boolean isEmpty(Object obj)
ObjectHandlerisEmpty in interface ObjectHandlerobj - the object that would be passed to createRDFNodepublic Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
parseObject in interface ObjectHandlernode - The RDFNode to wrap with the valueClass.Copyright © 2012-2013 XENEI.com. All Rights Reserved.