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
 String getName()
          Gets the name of this instance.
 OClass getOClass()
          Gets the class of this instance.
 Object getUserData()
          Gets the user data of this instance.
 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