| 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 |
|
|
| 10 |
|
|
| 11 |
|
|
| 12 |
|
public class SapBapiMapping { |
| 13 |
|
private String name; |
| 14 |
|
private List structures; |
| 15 |
|
private List input; |
| 16 |
|
private Map fieldSelection; |
| 17 |
|
|
| 18 |
0 |
public SapBapiMapping(String name) { |
| 19 |
0 |
this.name = name; |
| 20 |
0 |
this.structures = new ArrayList(); |
| 21 |
0 |
this.input = new ArrayList(); |
| 22 |
0 |
} |
| 23 |
|
|
| 24 |
|
public void addInput(SapInput input) { |
| 25 |
0 |
this.input.add(input); |
| 26 |
0 |
} |
| 27 |
|
|
| 28 |
|
public void addStructure(SapStructureMapping structureMapping) { |
| 29 |
0 |
this.structures.add(structureMapping); |
| 30 |
0 |
} |
| 31 |
|
|
| 32 |
|
public String getName() { |
| 33 |
0 |
return name; |
| 34 |
|
} |
| 35 |
|
|
| 36 |
|
public List getStructures() { |
| 37 |
0 |
return structures; |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public List getInput() { |
| 41 |
0 |
return input; |
| 42 |
|
} |
| 43 |
|
|
| 44 |
|
public void setFieldSelection(Map fieldSelection) { |
| 45 |
0 |
this.fieldSelection = fieldSelection; |
| 46 |
0 |
} |
| 47 |
|
|
| 48 |
|
public Collection getFieldSelection(String profile) { |
| 49 |
0 |
if (profile == null) { |
| 50 |
0 |
return null; |
| 51 |
|
} |
| 52 |
0 |
return (Collection) fieldSelection.get(profile); |
| 53 |
|
} |
| 54 |
|
} |