1 16 17 package org.springframework.validation; 18 19 import java.io.Serializable ; 20 import java.util.Map ; 21 22 import org.springframework.util.Assert; 23 24 36 public class MapBindingResult extends AbstractBindingResult implements Serializable { 37 38 private final Map target; 39 40 41 46 public MapBindingResult(Map target, String objectName) { 47 super(objectName); 48 Assert.notNull(target, "Target Map must not be null"); 49 this.target = target; 50 } 51 52 53 public final Map getTargetMap() { 54 return this.target; 55 } 56 57 public final Object getTarget() { 58 return this.target; 59 } 60 61 protected Object getActualFieldValue(String field) { 62 return this.target.get(field); 63 } 64 65 } 66 | Popular Tags |