org.topbraid.change
Class RDFNodeObjectProvider

java.lang.Object
  extended by org.topbraid.change.RDFNodeObjectProvider
All Implemented Interfaces:
IObjectProvider

public class RDFNodeObjectProvider
extends java.lang.Object
implements IObjectProvider


Constructor Summary
RDFNodeObjectProvider(com.hp.hpl.jena.rdf.model.RDFNode object)
           
 
Method Summary
 com.hp.hpl.jena.rdf.model.RDFNode getObject()
           
 java.lang.String getObjectText()
           
 com.hp.hpl.jena.rdf.model.RDFNode getUnsharedObject(com.hp.hpl.jena.rdf.model.Model model)
          Gets an object that is guaranteed to be not shared with other resources as bnode.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RDFNodeObjectProvider

public RDFNodeObjectProvider(com.hp.hpl.jena.rdf.model.RDFNode object)
Method Detail

getObject

public com.hp.hpl.jena.rdf.model.RDFNode getObject()
Specified by:
getObject in interface IObjectProvider

getObjectText

public java.lang.String getObjectText()
Specified by:
getObjectText in interface IObjectProvider

getUnsharedObject

public com.hp.hpl.jena.rdf.model.RDFNode getUnsharedObject(com.hp.hpl.jena.rdf.model.Model model)
                                                    throws java.lang.Exception
Description copied from interface: IObjectProvider
Gets an object that is guaranteed to be not shared with other resources as bnode. If the underlying source is a bnode, then this method must create a deep clone in the given Model.

Specified by:
getUnsharedObject in interface IObjectProvider
Parameters:
model - the target Model
Returns:
the new node
Throws:
java.lang.Exception