1 22 package org.jboss.xb.binding.metadata; 23 24 25 29 public class ValueMetaData 30 { 31 private String id; 32 private String ref; 33 private String unmarshalMethod; 34 private String marshalMethod; 35 36 public String getId() 37 { 38 return id; 39 } 40 41 public void setId(String id) 42 { 43 this.id = id; 44 } 45 46 public String getRef() 47 { 48 return ref; 49 } 50 51 public void setRef(String ref) 52 { 53 this.ref = ref; 54 } 55 56 public String getUnmarshalMethod() 57 { 58 return unmarshalMethod; 59 } 60 61 public void setUnmarshalMethod(String unmarshalMethod) 62 { 63 this.unmarshalMethod = unmarshalMethod; 64 } 65 66 public String getMarshalMethod() 67 { 68 return marshalMethod; 69 } 70 71 public void setMarshalMethod(String marshalMethod) 72 { 73 this.marshalMethod = marshalMethod; 74 } 75 76 public boolean equals(Object o) 77 { 78 if(this == o) 79 { 80 return true; 81 } 82 if(!(o instanceof ValueMetaData)) 83 { 84 return false; 85 } 86 87 final ValueMetaData valueMetaData = (ValueMetaData)o; 88 89 if(id != null ? !id.equals(valueMetaData.id) : valueMetaData.id != null) 90 { 91 return false; 92 } 93 if(marshalMethod != null ? !marshalMethod.equals(valueMetaData.marshalMethod) : valueMetaData.marshalMethod != null) 94 { 95 return false; 96 } 97 if(ref != null ? !ref.equals(valueMetaData.ref) : valueMetaData.ref != null) 98 { 99 return false; 100 } 101 if(unmarshalMethod != null ? 102 !unmarshalMethod.equals(valueMetaData.unmarshalMethod) : 103 valueMetaData.unmarshalMethod != null) 104 { 105 return false; 106 } 107 108 return true; 109 } 110 111 public int hashCode() 112 { 113 int result; 114 result = (id != null ? id.hashCode() : 0); 115 result = 29 * result + (ref != null ? ref.hashCode() : 0); 116 result = 29 * result + (unmarshalMethod != null ? unmarshalMethod.hashCode() : 0); 117 result = 29 * result + (marshalMethod != null ? marshalMethod.hashCode() : 0); 118 return result; 119 } 120 } 121 | Popular Tags |