GATE
Version 3.1-2270

gate.creole.ontology
Class OInstanceImpl

java.lang.Object
  extended by gate.creole.ontology.OntologyResourceImpl
      extended by gate.creole.ontology.OInstanceImpl
All Implemented Interfaces:
OInstance, OntologyResource

public class OInstanceImpl
extends OntologyResourceImpl
implements OInstance


Field Summary
protected  Set instanceClasses
           
protected  Object userData
           
 
Fields inherited from class gate.creole.ontology.OntologyResourceImpl
comment, instanceProperties, name, ontology, taxonomy, uri
 
Constructor Summary
OInstanceImpl(String name, String comment, OClass aClass, Ontology ontology)
           
OInstanceImpl(String name, String comment, Set classes, Ontology ontology)
           
 
Method Summary
 Set getDifferentFrom()
           
 Set getOClasses()
          Gets the set of classes this instance belongs to.
 Set getSameIndividualAs()
           
 Object getUserData()
          Gets the user data of this instance.
 void setDifferentFrom(OInstance theIndividual)
           
 void setSameIndividualAs(OInstance theIndividual)
           
 void setUserData(Object theUserData)
          Sets the user data of this instance.
 String toString()
           
 
Methods inherited from class gate.creole.ontology.OntologyResourceImpl
addPropertyValue, getComment, getName, getOntology, getPropertyValue, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setComment, setName, setOntology, setURI
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface gate.creole.ontology.OntologyResource
addPropertyValue, getComment, getName, getOntology, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setComment, setName, setURI
 

Field Detail

userData

protected Object userData

instanceClasses

protected Set instanceClasses
Constructor Detail

OInstanceImpl

public OInstanceImpl(String name,
                     String comment,
                     Set classes,
                     Ontology ontology)

OInstanceImpl

public OInstanceImpl(String name,
                     String comment,
                     OClass aClass,
                     Ontology ontology)
Method Detail

getOClasses

public Set getOClasses()
Description copied from interface: OInstance
Gets the set of classes this instance belongs to.

Specified by:
getOClasses in interface OInstance
Returns:
a set of OClass objects.

toString

public String toString()
Overrides:
toString in class Object

setUserData

public void setUserData(Object theUserData)
Sets the user data of this instance. To be used to store arbitrary data on instances.

Specified by:
setUserData in interface OInstance

getUserData

public Object getUserData()
Gets the user data of this instance.

Specified by:
getUserData in interface OInstance
Returns:
the object which is user data

setDifferentFrom

public void setDifferentFrom(OInstance theIndividual)
Specified by:
setDifferentFrom in interface OInstance

getDifferentFrom

public Set getDifferentFrom()
Specified by:
getDifferentFrom in interface OInstance

setSameIndividualAs

public void setSameIndividualAs(OInstance theIndividual)
Specified by:
setSameIndividualAs in interface OInstance

getSameIndividualAs

public Set getSameIndividualAs()
Specified by:
getSameIndividualAs in interface OInstance

GATE
Version 3.1-2270