KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > xml > multispaced > XMBeanConstructorMetaData


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.xml.multispaced;
8
9 /**
10  * @version <tt>$Revision: 1.1 $</tt>
11  * @author <a HREF="mailto:alex@jboss.org">Alexey Loubyansky</a>
12  */

13 public class XMBeanConstructorMetaData
14 {
15    private String JavaDoc description;
16    private String JavaDoc name;
17
18    public String JavaDoc getDescription()
19    {
20       return description;
21    }
22
23    public void setDescription(String JavaDoc description)
24    {
25       this.description = description;
26    }
27
28    public String JavaDoc getName()
29    {
30       return name;
31    }
32
33    public void setName(String JavaDoc name)
34    {
35       this.name = name;
36    }
37
38    public String JavaDoc toString()
39    {
40       return "[name=" + name + ", description=" + description + ']';
41    }
42
43    public boolean equals(Object JavaDoc o)
44    {
45       if(this == o) return true;
46       if(!(o instanceof XMBeanConstructorMetaData)) return false;
47
48       final XMBeanConstructorMetaData mBeanConstructorMetaData = (XMBeanConstructorMetaData)o;
49
50       if(description != null ? !description.equals(mBeanConstructorMetaData.description) : mBeanConstructorMetaData.description != null) return false;
51       if(name != null ? !name.equals(mBeanConstructorMetaData.name) : mBeanConstructorMetaData.name != null) return false;
52
53       return true;
54    }
55
56    public int hashCode()
57    {
58       int result;
59       result = (description != null ? description.hashCode() : 0);
60       result = 29 * result + (name != null ? name.hashCode() : 0);
61       return result;
62    }
63 }
64
Popular Tags