View Javadoc

1   package net.sf.mmapps.commons.beans;
2   
3   import java.io.Serializable;
4   
5   /***
6    * @author Wouter Heijke
7    * @version $Revision: 1.1 $
8    */
9   public class NodeBean implements Serializable {
10  	private int id; // mmbase number
11  
12  	private String type; // mmbase otype
13  
14  	private String owner;
15  
16  	public int getId() {
17  		return id;
18  	}
19  
20  	public void setId(int id) {
21  		this.id = id;
22  	}
23  	
24  	public String getType() {
25  		return type;
26  	}
27  
28  	public void setType(String type) {
29  		this.type = type;
30  	}
31  
32  	public String getOwner() {
33  		return owner;
34  	}
35  
36  	public void setOwner(String owner) {
37  		this.owner = owner;
38  	}
39  
40      /***
41       * @see java.lang.Object#hashCode()
42       */
43      public final int hashCode() {
44          return id;
45      }
46  
47      /***
48       * @see java.lang.Object#equals(java.lang.Object)
49       */
50      public final boolean equals(Object obj) {
51          if (this == obj) return true;
52          if (obj == null) return false;
53          if (getClass() != obj.getClass()) return false;
54          final NodeBean other = (NodeBean) obj;
55          if (id != other.id) return false;
56          return true;
57      }
58      
59  }