gate.creole.ontology
Class OInstanceImpl
java.lang.Object
gate.creole.ontology.OInstanceImpl
- All Implemented Interfaces:
- OInstance
- public class OInstanceImpl
- extends Object
- implements OInstance
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
userData
protected Object userData
instanceClass
protected OClass instanceClass
instanceName
protected String instanceName
OInstanceImpl
public OInstanceImpl(String aName,
OClass aClass)
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