org.topbraid.core.model
Class ObjectValidation

java.lang.Object
  extended by org.topbraid.core.model.ObjectValidation

public class ObjectValidation
extends java.lang.Object


Constructor Summary
ObjectValidation()
           
 
Method Summary
static boolean isValidObject(com.hp.hpl.jena.rdf.model.Resource subject, com.hp.hpl.jena.rdf.model.Property predicate, com.hp.hpl.jena.rdf.model.RDFNode object)
          Checks if a given Object would be "valid" for a given subject/predicate combination.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ObjectValidation

public ObjectValidation()
Method Detail

isValidObject

public static boolean isValidObject(com.hp.hpl.jena.rdf.model.Resource subject,
                                    com.hp.hpl.jena.rdf.model.Property predicate,
                                    com.hp.hpl.jena.rdf.model.RDFNode object)
Checks if a given Object would be "valid" for a given subject/predicate combination. This method uses getPropertyRange and checks if the object matches the range.

Parameters:
subject - the subject of the potential triple
predicate - the predicate of the potential triple
object - the object of the potential triple
Returns:
true if the triple would be "valid"