org.xenei.jena.entities.impl
Interface ObjectHandler

All Known Implementing Classes:
EntityHandler, LiteralHandler, ResourceHandler, UriHandler, VoidHandler

public interface ObjectHandler

The interface for the internal ObjectHandler. The handler will create the RDFNode from the object passed to the setter method, and will create the object to be returned for the getter method. In general X.equals( parseObject( createRDFNode( X ))) should hold true as should X.equals( createRDFNode( parseObject( X ))).


Method Summary
 com.hp.hpl.jena.rdf.model.RDFNode createRDFNode(Object obj)
          Parse the object into an RDFNode representation.
 Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
          Parse the RDF node into an object.
 

Method Detail

createRDFNode

com.hp.hpl.jena.rdf.model.RDFNode createRDFNode(Object obj)
Parse the object into an RDFNode representation.

Parameters:
obj - The object to represent
Returns:
The RDFNode representation

parseObject

Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
Parse the RDF node into an object.

Parameters:
node - The RDFNode to be unparsed.
Returns:
The Object from the unparsed RDFNode.


Copyright © 2012 XENEI.com. All Rights Reserved.