org.topbraid.change
Class DatatypeObjectProvider

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

public class DatatypeObjectProvider
extends java.lang.Object
implements IObjectProvider


Constructor Summary
DatatypeObjectProvider(com.hp.hpl.jena.ontology.OntModel ontModel, java.lang.String classExpression)
           
 
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

DatatypeObjectProvider

public DatatypeObjectProvider(com.hp.hpl.jena.ontology.OntModel ontModel,
                              java.lang.String classExpression)
Method Detail

getObject

public com.hp.hpl.jena.rdf.model.RDFNode getObject()
                                            throws java.lang.Exception
Specified by:
getObject in interface IObjectProvider
Throws:
java.lang.Exception

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