1 16 package org.apache.commons.betwixt; 17 18 import java.io.Serializable ; 19 20 import org.apache.commons.betwixt.strategy.DefaultObjectStringConverter; 21 import org.apache.commons.betwixt.strategy.ObjectStringConverter; 22 23 40 public class BindingConfiguration implements Serializable { 41 42 43 private boolean mapIDs = true; 44 45 private ObjectStringConverter objectStringConverter; 46 47 private String classNameAttribute = "className"; 48 49 52 public BindingConfiguration() { 53 this(new DefaultObjectStringConverter(), true); 54 } 55 56 62 public BindingConfiguration(ObjectStringConverter objectStringConverter, boolean mapIDs) { 63 setObjectStringConverter(objectStringConverter); 64 setMapIDs(mapIDs); 65 } 66 67 71 public ObjectStringConverter getObjectStringConverter() { 72 return objectStringConverter; 73 } 74 75 79 public void setObjectStringConverter(ObjectStringConverter objectStringConverter) { 80 this.objectStringConverter = objectStringConverter; 81 } 82 83 90 public boolean getMapIDs() { 91 return mapIDs; 92 } 93 94 100 public void setMapIDs(boolean mapIDs) { 101 this.mapIDs = mapIDs; 102 } 103 104 112 public String getClassNameAttribute() { 113 return classNameAttribute; 114 } 115 116 125 public void setClassNameAttribute(String classNameAttribute) { 126 this.classNameAttribute = classNameAttribute; 127 } 128 } 129 | Popular Tags |