NIHVIVO-1385 Add toString() method to help in debugging. As long as we are here, use proper generics.
This commit is contained in:
parent
3d577d399a
commit
e8a1dd31b4
1 changed files with 21 additions and 21 deletions
|
@ -3,59 +3,59 @@
|
||||||
package edu.cornell.mannlib.vedit.beans;
|
package edu.cornell.mannlib.vedit.beans;
|
||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
import java.util.ArrayList;
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
import edu.cornell.mannlib.vedit.beans.Option;
|
|
||||||
|
|
||||||
public class FormObject implements Serializable {
|
public class FormObject implements Serializable {
|
||||||
|
|
||||||
private HashMap values = new HashMap();
|
private HashMap<String, String> values = new HashMap<String, String>();
|
||||||
private HashMap optionLists = new HashMap();
|
private HashMap<String, List<Option>> optionLists = new HashMap<String, List<Option>>();
|
||||||
private HashMap checkboxLists = new HashMap();
|
private HashMap<String, List<Checkbox>> checkboxLists = new HashMap<String, List<Checkbox>>();
|
||||||
private HashMap errorMap = new HashMap();
|
private HashMap<String, String> errorMap = new HashMap<String, String>();
|
||||||
private List dynamicFields = null;
|
private List<DynamicField> dynamicFields = new ArrayList<DynamicField>();
|
||||||
|
|
||||||
public HashMap getValues(){
|
public HashMap<String, String> getValues(){
|
||||||
return values;
|
return values;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setValues(HashMap values){
|
public void setValues(HashMap<String, String> values){
|
||||||
this.values = values;
|
this.values = values;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String valueByName(String name){
|
public String valueByName(String name){
|
||||||
return (String) values.get(name);
|
return values.get(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashMap getOptionLists() {
|
public HashMap<String, List<Option>> getOptionLists() {
|
||||||
return optionLists;
|
return optionLists;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setOptionLists(HashMap optionLists) {
|
public void setOptionLists(HashMap<String, List<Option>> optionLists) {
|
||||||
this.optionLists = optionLists;
|
this.optionLists = optionLists;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List optionListByName(String key){
|
public List<Option> optionListByName(String key){
|
||||||
return (List) optionLists.get(key);
|
return optionLists.get(key);
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashMap getCheckboxLists(){
|
public HashMap<String, List<Checkbox>> getCheckboxLists(){
|
||||||
return checkboxLists;
|
return checkboxLists;
|
||||||
}
|
}
|
||||||
|
|
||||||
public HashMap getErrorMap(){
|
public HashMap<String, String> getErrorMap(){
|
||||||
return errorMap;
|
return errorMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setErrorMap(HashMap errorMap){
|
public void setErrorMap(HashMap<String, String> errorMap){
|
||||||
this.errorMap = errorMap;
|
this.errorMap = errorMap;
|
||||||
}
|
}
|
||||||
|
|
||||||
public List getDynamicFields() {
|
public List<DynamicField> getDynamicFields() {
|
||||||
return dynamicFields;
|
return dynamicFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setDynamicFields(List dynamicFields){
|
public void setDynamicFields(List<DynamicField> dynamicFields){
|
||||||
this.dynamicFields = dynamicFields;
|
this.dynamicFields = dynamicFields;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue