gate.creole.ontology
Class OInstanceImpl

java.lang.Object
  extended bygate.creole.ontology.OInstanceImpl
All Implemented Interfaces:
OInstance

public class OInstanceImpl
extends Object
implements OInstance


Field Summary
protected  OClass instanceClass
           
protected  String instanceName
           
protected  Object userData
           
 
Constructor Summary
OInstanceImpl(String aName, OClass aClass)
           
 
Method Summary
 Set getDifferentFrom()
           
 String getName()
          Gets the name of this instance.
 OClass getOClass()
          Gets the class of this instance.
 Object getPropertyValue(Property theProperty)
           
 Set getSameIndividualAs()
           
 Object getUserData()
          Gets the user data of this instance.
 void setDifferentFrom(OInstance theIndividual)
           
 void setPropertyValue(Property theProperty, Object theValue)
           
 void setSameIndividualAs(OInstance theIndividual)
           
 void setUserData(Object theUserData)
          Sets the user data of this instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

userData

protected Object userData

instanceClass

protected OClass instanceClass

instanceName

protected String instanceName
Constructor Detail

OInstanceImpl

public OInstanceImpl(String aName,
                     OClass aClass)
Method Detail

getOClass

public OClass getOClass()
Description copied from interface: OInstance
Gets the class of this instance.

Specified by:
getOClass in interface OInstance
Returns:
the class

getName

public String getName()
Description copied from interface: OInstance
Gets the name of this instance.

Specified by:
getName in interface OInstance
Returns:
the name

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

setPropertyValue

public void setPropertyValue(Property theProperty,
                             Object theValue)
Specified by:
setPropertyValue in interface OInstance

getPropertyValue

public Object getPropertyValue(Property theProperty)
Specified by:
getPropertyValue 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