1 16 package net.sf.dozer.util.mapping.fieldmap; 17 18 24 public class DozerClass implements Cloneable { 25 private String name; 26 private Class classToMap; 27 private String beanFactory; 28 private String factoryBeanId; 29 private String mapGetMethod; 30 private String mapSetMethod; 31 private boolean isCustomMap; 32 private String createMethod; 33 private Boolean mapNull; 34 private Boolean mapEmptyString; 35 36 public DozerClass() { 37 } 38 39 public DozerClass(String name, Class classToMap, String beanFactory, String factoryBeanId, 40 String mapGetMethod, String mapSetMethod, Boolean mapNull, Boolean mapEmptyString) { 41 this.name = name; 42 this.classToMap = classToMap; 43 this.beanFactory = beanFactory; 44 this.factoryBeanId = factoryBeanId; 45 this.mapGetMethod = mapGetMethod; 46 this.mapSetMethod = mapSetMethod; 47 this.mapNull = mapNull; 48 this.mapEmptyString = mapEmptyString; 49 } 50 51 public String getBeanFactory() { 52 return beanFactory; 53 } 54 55 public void setBeanFactory(String beanFactory) { 56 this.beanFactory = beanFactory; 57 } 58 59 public Class getClassToMap() { 60 return classToMap; 61 } 62 63 public void setClassToMap(Class classToMap) { 64 this.classToMap = classToMap; 65 } 66 67 public String getName() { 68 return name; 69 } 70 71 public void setName(String name) throws ClassNotFoundException { 72 this.name = name; 73 classToMap = Thread.currentThread().getContextClassLoader().loadClass(name); 74 } 75 76 public String getFactoryBeanId() { 77 return factoryBeanId; 78 } 79 80 public void setFactoryBeanId(String factoryBeanId) { 81 this.factoryBeanId = factoryBeanId; 82 } 83 84 public Object clone() throws CloneNotSupportedException { 85 return super.clone(); 86 } 87 88 public String getMapGetMethod() { 89 return mapGetMethod; 90 } 91 92 public void setMapGetMethod(String mapGetMethod) { 93 this.mapGetMethod = mapGetMethod; 94 } 95 96 public String getMapSetMethod() { 97 return mapSetMethod; 98 } 99 100 public void setMapSetMethod(String mapSetMethod) { 101 this.mapSetMethod = mapSetMethod; 102 } 103 104 public boolean isCustomMap() { 105 return isCustomMap; 106 } 107 108 public void setCustomMap(boolean isCustomMap) { 109 this.isCustomMap = isCustomMap; 110 } 111 112 public String getCreateMethod() { 113 return createMethod; 114 } 115 116 public void setCreateMethod(String createMethod) { 117 this.createMethod = createMethod; 118 } 119 120 public Boolean getMapNull() { 121 return mapNull; 122 } 123 124 public void setMapNull(Boolean mapNull) { 125 this.mapNull = mapNull; 126 } 127 128 public Boolean getMapEmptyString() { 129 return mapEmptyString; 130 } 131 132 public void setMapEmptyString(Boolean mapEmptyString) { 133 this.mapEmptyString = mapEmptyString; 134 } 135 136 } | Popular Tags |