1 7 package com.inversoft.verge.mvc.controller.form.config; 8 9 10 import java.util.HashMap ; 11 import java.util.Map ; 12 13 import com.inversoft.verge.mvc.config.BaseFormConfig; 14 import com.inversoft.verge.mvc.controller.LongTxnSetup; 15 16 17 23 public class FormConfig extends BaseFormConfig { 24 25 private Map actions; 26 private Map mappings; 27 private LongTxnSetup longTxnSetup; 28 29 30 public FormConfig(BaseFormConfig base) { 31 super(base); 32 actions = new HashMap (); 33 mappings = new HashMap (); 34 } 35 36 37 41 void addActionConfig(String name, ActionConfig action) { 42 actions.put(name, action); 43 } 44 45 48 public ActionConfig getActionConfig(String name) { 49 return (ActionConfig) actions.get(name); 50 } 51 52 56 void addMappingConfig(String name, MappingConfig mapping) { 57 mappings.put(name, mapping); 58 } 59 60 63 public MappingConfig getMappingConfig(String name) { 64 return (MappingConfig) mappings.get(name); 65 } 66 67 72 public LongTxnSetup getLongTxnSetup() { 73 return longTxnSetup; 74 } 75 76 81 void setLongTxnSetup(LongTxnSetup longTxnSetup) { 82 this.longTxnSetup = longTxnSetup; 83 } 84 } | Popular Tags |