org.xenei.jena.entities.impl.handlers
Class UriHandler

java.lang.Object
  extended by org.xenei.jena.entities.impl.handlers.UriHandler
All Implemented Interfaces:
ObjectHandler

public class UriHandler
extends Object
implements ObjectHandler

An ObjectHandler that handles converting RDFNodes to URI strings and visa versa


Constructor Summary
UriHandler()
           
 
Method Summary
 com.hp.hpl.jena.rdf.model.RDFNode createRDFNode(Object obj)
          Conver the object as a string to an RDFNode.
 boolean equals(Object o)
           
 int hashCode()
           
 Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
          Return the URI string for the RDFnode
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UriHandler

public UriHandler()
Method Detail

createRDFNode

public com.hp.hpl.jena.rdf.model.RDFNode createRDFNode(Object obj)
Conver the object as a string to an RDFNode.

Specified by:
createRDFNode in interface ObjectHandler
Parameters:
obj - The object to convert
Returns:
The RDFNode with the object string value as the URI.

parseObject

public Object parseObject(com.hp.hpl.jena.rdf.model.RDFNode node)
Return the URI string for the RDFnode

Specified by:
parseObject in interface ObjectHandler
Parameters:
node - the RDFNode
Returns:
the URI fo the RDF node
Throws:
Exception - if the node is not a Resource.

toString

public String toString()
Overrides:
toString in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object


Copyright © 2012 XENEI.com. All Rights Reserved.