1   /*
2    * OInstance.java
3    *
4    * Copyright (c) 2002, The University of Sheffield.
5    *
6    * This file is part of GATE (see http://gate.ac.uk/), and is free
7    * software, licenced under the GNU Library General Public License,
8    * Version 2, June1991.
9    *
10   * A copy of this licence is included in the distribution in the file
11   * licence.html, and is also available at http://gate.ac.uk/gate/licence.html.
12   *
13   * Kalina Bontcheva 03/2003
14   *
15   */
16  
17  package gate.creole.ontology;
18  
19  public interface OInstance {
20  
21    /** Gets the class of this instance.
22     *  @return the class
23     */
24    public OClass getOClass();
25  
26    /** Gets the name of this instance.
27     *  @return the name
28     */
29    public String getName();
30  
31    /** Sets the user data of this instance. To be used to
32     * store arbitrary data on instances.
33     */
34    public void setUserData(Object theUserData);
35  
36    /** Gets the user data of this instance.
37     *  @return the object which is user data
38     */
39    public Object getUserData();
40  }