View Javadoc

1   /*
2    * AbstractIdentified.java
3    *
4    * Created on July 20, 2006, 10:49 PM
5    *
6    */
7   
8   package net.sourceforge.rpgee;
9   
10  /**
11   *
12   * @author Mykel
13   */
14  public abstract class AbstractIdentified implements Identified {
15      private Object  id;
16      
17      /** Creates a new instance of AbstractIdentified */
18      public AbstractIdentified() {
19          this(null);
20      }
21      
22      public AbstractIdentified(Object id) {
23          super();
24          this.id = id;
25      }
26  
27      public Object getId() {
28          return id;
29      }
30  
31      public String getIdAsString() {
32          return id.toString();
33      }
34  
35      public void setId(Object id) {
36          this.id = id;
37      }
38      
39      public void setIdAsString(String id) {
40          setId(id);
41      }
42  
43  }