gate.creole.ontology
Class OInstanceImpl
java.lang.Object
gate.creole.ontology.OntologyResourceImpl
gate.creole.ontology.OInstanceImpl
- All Implemented Interfaces:
- OInstance, OntologyResource
public class OInstanceImpl
- extends OntologyResourceImpl
- implements OInstance
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 interface gate.creole.ontology.OntologyResource |
addPropertyValue, getComment, getName, getOntology, getPropertyValues, getSetPropertiesNames, getTaxonomy, getURI, removePropertyValue, removePropertyValues, setComment, setName, setURI |
userData
protected Object userData
instanceClasses
protected Set instanceClasses
OInstanceImpl
public OInstanceImpl(String name,
String comment,
Set classes,
Ontology ontology)
OInstanceImpl
public OInstanceImpl(String name,
String comment,
OClass aClass,
Ontology ontology)
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