1 7 package org.jboss.test.xml.multispaced; 8 9 13 public class XMBeanOperationMetaData 14 { 15 private String description; 16 private String name; 17 private String returnType; 18 19 public String getDescription() 20 { 21 return description; 22 } 23 24 public void setDescription(String description) 25 { 26 this.description = description; 27 } 28 29 public String getName() 30 { 31 return name; 32 } 33 34 public void setName(String name) 35 { 36 this.name = name; 37 } 38 39 public String getReturnType() 40 { 41 return returnType; 42 } 43 44 public void setReturnType(String returnType) 45 { 46 this.returnType = returnType; 47 } 48 49 public String toString() 50 { 51 return "[name=" + name + ", return-type=" + returnType + ", description=" + description + ']'; 52 } 53 54 public boolean equals(Object o) 55 { 56 if(this == o) return true; 57 if(!(o instanceof XMBeanOperationMetaData)) return false; 58 59 final XMBeanOperationMetaData mBeanOperationMetaData = (XMBeanOperationMetaData)o; 60 61 if(description != null ? !description.equals(mBeanOperationMetaData.description) : mBeanOperationMetaData.description != null) return false; 62 if(name != null ? !name.equals(mBeanOperationMetaData.name) : mBeanOperationMetaData.name != null) return false; 63 if(returnType != null ? !returnType.equals(mBeanOperationMetaData.returnType) : mBeanOperationMetaData.returnType != null) return false; 64 65 return true; 66 } 67 68 public int hashCode() 69 { 70 int result; 71 result = (description != null ? description.hashCode() : 0); 72 result = 29 * result + (name != null ? name.hashCode() : 0); 73 result = 29 * result + (returnType != null ? returnType.hashCode() : 0); 74 return result; 75 } 76 } 77 | Popular Tags |