1 7 package org.jboss.test.xml.multispaced; 8 9 13 public class XMBeanConstructorMetaData 14 { 15 private String description; 16 private String name; 17 18 public String getDescription() 19 { 20 return description; 21 } 22 23 public void setDescription(String description) 24 { 25 this.description = description; 26 } 27 28 public String getName() 29 { 30 return name; 31 } 32 33 public void setName(String name) 34 { 35 this.name = name; 36 } 37 38 public String toString() 39 { 40 return "[name=" + name + ", description=" + description + ']'; 41 } 42 43 public boolean equals(Object 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 |