1 22 package org.jboss.xb.binding.metadata; 23 24 import org.jboss.util.JBossStringBuilder; 25 import org.jboss.util.Strings; 26 27 28 32 public class ClassMetaData 33 { 34 private String impl; 35 private Boolean useNoArgCtor; 36 37 public String getImpl() 38 { 39 return impl; 40 } 41 42 public void setImpl(String impl) 43 { 44 this.impl = impl; 45 } 46 47 56 public Boolean isUseNoArgCtor() 57 { 58 return useNoArgCtor; 59 } 60 61 public void setUseNoArgCtor(Boolean useNoArgCtor) 62 { 63 this.useNoArgCtor = useNoArgCtor; 64 } 65 66 public boolean equals(Object o) 67 { 68 if(this == o) 69 { 70 return true; 71 } 72 if(!(o instanceof ClassMetaData)) 73 { 74 return false; 75 } 76 77 final ClassMetaData classMetaData = (ClassMetaData)o; 78 79 if(impl != null ? !impl.equals(classMetaData.impl) : classMetaData.impl != null) 80 { 81 return false; 82 } 83 84 return true; 85 } 86 87 public int hashCode() 88 { 89 return (impl != null ? impl.hashCode() : 0); 90 } 91 92 public String toString() 93 { 94 JBossStringBuilder buffer = new JBossStringBuilder(); 95 Strings.defaultToString(buffer, this); 96 buffer.append('['); 97 buffer.append("impl=").append(impl); 98 buffer.append(']'); 99 return buffer.toString(); 100 } 101 } 102 | Popular Tags |