1 package net.sf.sapjcosupport; 2 3 import java.util.ArrayList; 4 import java.util.Collection; 5 import java.util.List; 6 import java.util.Map; 7 8 /** 9 * @author Niki Driessen 10 * @since Jan 23, 2006 - 11:49:02 AM 11 */ 12 public class SapBapiMapping { 13 private String name; 14 private List structures; 15 private List input; 16 private Map fieldSelection; 17 18 public SapBapiMapping(String name) { 19 this.name = name; 20 this.structures = new ArrayList(); 21 this.input = new ArrayList(); 22 } 23 24 public void addInput(SapInput input) { 25 this.input.add(input); 26 } 27 28 public void addStructure(SapStructureMapping structureMapping) { 29 this.structures.add(structureMapping); 30 } 31 32 public String getName() { 33 return name; 34 } 35 36 public List getStructures() { 37 return structures; 38 } 39 40 public List getInput() { 41 return input; 42 } 43 44 public void setFieldSelection(Map fieldSelection) { 45 this.fieldSelection = fieldSelection; 46 } 47 48 public Collection getFieldSelection(String profile) { 49 if (profile == null) { 50 return null; 51 } 52 return (Collection) fieldSelection.get(profile); 53 } 54 }