1 16 package net.sf.dozer.util.mapping.fieldmap; 17 18 19 25 public class Field implements Cloneable { 26 private final String type; 27 private final String name; 28 private String dateFormat; 29 private String theGetMethod; 30 private String theSetMethod; 31 private String key; 32 private String mapSetMethod; 33 private String mapGetMethod; 34 private boolean isAccessible; 35 private String createMethod; 36 private boolean isIndexed; 37 private int index = -1; 38 39 public Field(String name, String type) { 40 this.type = type; 41 this.name = name; 42 } 43 44 public String getType() { 45 return type; 46 } 47 48 public String getName() { 49 return name; 50 } 51 52 public String getDateFormat() { 53 return dateFormat; 54 } 55 56 public void setDateFormat(String dateFormat) { 57 this.dateFormat = dateFormat; 58 } 59 60 public String toString() { 61 return getName() + " : " + getType(); 62 } 63 64 public String getTheGetMethod() { 65 return theGetMethod; 66 } 67 68 public void setTheGetMethod(String theGetMethod) { 69 this.theGetMethod = theGetMethod; 70 } 71 72 public String getTheSetMethod() { 73 return theSetMethod; 74 } 75 76 public void setTheSetMethod(String theSetMethod) { 77 this.theSetMethod = theSetMethod; 78 } 79 80 public String getKey() { 81 return key; 82 } 83 84 public void setKey(String key) { 85 this.key = key; 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 isAccessible() { 105 return isAccessible; 106 } 107 108 public void setAccessible(boolean isAccessible) { 109 this.isAccessible = isAccessible; 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 int getIndex() { 121 return index; 122 } 123 124 public void setIndex(int index) { 125 this.index = index; 126 } 127 128 public boolean isIndexed() { 129 return isIndexed; 130 } 131 132 public void setIndexed(boolean isIndexed) { 133 this.isIndexed = isIndexed; 134 } 135 136 } | Popular Tags |