org.opentox.toxotis.ontology.impl
Class OntologicalClassImpl

java.lang.Object
  extended by org.opentox.toxotis.ontology.impl.OntologicalClassImpl
All Implemented Interfaces:
Serializable, OntologicalClass, OTResource

public class OntologicalClassImpl
extends Object
implements OntologicalClass

See Also:
Serialized Form

Constructor Summary
OntologicalClassImpl()
          Construct an empty instance of OntologicalClass.
OntologicalClassImpl(String name)
          Create a new Ontological Class with given name.
OntologicalClassImpl(String name, String namespace)
          Constructs a new Ontological class with given name and namespace.
 
Method Summary
 boolean equals(Object obj)
           
 Set<OntologicalClass> getDisjointWith()
           
 MetaInfo getMetaInfo()
           
 String getName()
           
 String getNameSpace()
           
 Set<OntologicalClass> getSuperClasses()
           
 String getUri()
          The URI of the ontological resource that uniquely identifies it.
 int hashCode()
           
 com.hp.hpl.jena.ontology.OntClass inModel(com.hp.hpl.jena.ontology.OntModel model)
           
 OntologicalClass setDisjointWith(Set<OntologicalClass> disjointWith)
           
 OntologicalClass setMetaInfo(MetaInfo metaInfo)
           
 OntologicalClass setName(String name)
           
 OntologicalClass setNameSpace(String ns)
           
 OntologicalClass setSuperClasses(Set<OntologicalClass> superClasses)
           
 OntologicalClass setUri(String uri)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OntologicalClassImpl

public OntologicalClassImpl()
Construct an empty instance of OntologicalClass. The name-space is by default set to ot and its name is null.


OntologicalClassImpl

public OntologicalClassImpl(String name)
Create a new Ontological Class with given name. The name-space is by default set to ot. Thus the URI of this class will be ot:{name}.

Parameters:
name - Name of the ontological class.

OntologicalClassImpl

public OntologicalClassImpl(String name,
                            String namespace)
Constructs a new Ontological class with given name and namespace. In case the provided namespace is null then the default value for it is set, that is ot.

Parameters:
name - Local name of the ontological class
namespace - The namespace in which the ontological class belongs.
Method Detail

getMetaInfo

public MetaInfo getMetaInfo()
Specified by:
getMetaInfo in interface OntologicalClass

setMetaInfo

public OntologicalClass setMetaInfo(MetaInfo metaInfo)
Specified by:
setMetaInfo in interface OntologicalClass

getSuperClasses

public Set<OntologicalClass> getSuperClasses()
Specified by:
getSuperClasses in interface OntologicalClass

setSuperClasses

public OntologicalClass setSuperClasses(Set<OntologicalClass> superClasses)
Specified by:
setSuperClasses in interface OntologicalClass

getDisjointWith

public Set<OntologicalClass> getDisjointWith()
Specified by:
getDisjointWith in interface OntologicalClass

setDisjointWith

public OntologicalClass setDisjointWith(Set<OntologicalClass> disjointWith)
Specified by:
setDisjointWith in interface OntologicalClass

getNameSpace

public String getNameSpace()
Specified by:
getNameSpace in interface OntologicalClass

setNameSpace

public OntologicalClass setNameSpace(String ns)
Specified by:
setNameSpace in interface OntologicalClass

getName

public String getName()
Specified by:
getName in interface OntologicalClass

setName

public OntologicalClass setName(String name)
Specified by:
setName in interface OntologicalClass

getUri

public String getUri()
Description copied from interface: OTResource
The URI of the ontological resource that uniquely identifies it.

Specified by:
getUri in interface OntologicalClass
Specified by:
getUri in interface OTResource
Returns:
The URI of the resource as a string/

setUri

public OntologicalClass setUri(String uri)
Specified by:
setUri in interface OntologicalClass

equals

public boolean equals(Object obj)
Specified by:
equals in interface OntologicalClass
Overrides:
equals in class Object

hashCode

public int hashCode()
Specified by:
hashCode in interface OntologicalClass
Overrides:
hashCode in class Object

inModel

public com.hp.hpl.jena.ontology.OntClass inModel(com.hp.hpl.jena.ontology.OntModel model)
Specified by:
inModel in interface OntologicalClass

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011-2012 OpenTox. All Rights Reserved.