org.opentox.toxotis.ontology
Class ResourceValue

java.lang.Object
  extended by org.opentox.toxotis.ontology.ResourceValue
All Implemented Interfaces:
Serializable

public class ResourceValue
extends Object
implements Serializable

A wrapper for a Resource assigned to some other resource through an Object property acting as a value for that property. A resource value is characterized by its URI and its type which in that case is an Ontological Class.

Author:
Pantelis Sopasakis, Charalampos Chomenides
See Also:
Serialized Form

Constructor Summary
ResourceValue(VRI uri, OntologicalClass ontologicalClass)
           
 
Method Summary
 boolean equals(Object obj)
           
 long getHash()
           
 OntologicalClass getOntologicalClass()
           
 VRI getUri()
           
 int hashCode()
           
 com.hp.hpl.jena.rdf.model.Resource inModel(com.hp.hpl.jena.ontology.OntModel model)
           
 void setHash(long hashCode)
           
 void setOntologicalClass(OntologicalClass ontologicalClass)
           
 void setUri(VRI uri)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceValue

public ResourceValue(VRI uri,
                     OntologicalClass ontologicalClass)
Method Detail

getOntologicalClass

public OntologicalClass getOntologicalClass()

setOntologicalClass

public void setOntologicalClass(OntologicalClass ontologicalClass)

getUri

public VRI getUri()

setUri

public void setUri(VRI uri)

inModel

public com.hp.hpl.jena.rdf.model.Resource inModel(com.hp.hpl.jena.ontology.OntModel model)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

getHash

public long getHash()

setHash

public void setHash(long hashCode)


Copyright © 2011-2012 OpenTox. All Rights Reserved.