1 package org.andromda.andromdapp;
2
3 import java.util.ArrayList;
4 import java.util.LinkedHashMap;
5 import java.util.List;
6 import java.util.Map;
7
8
9
10
11
12
13
14 public class Conditions
15 {
16
17
18
19 static final String TYPE_AND = "and";
20
21
22
23
24 static final String TYPE_OR = "or";
25
26
27
28
29 private String type;
30
31
32
33
34
35
36 public String getType()
37 {
38 return this.type;
39 }
40
41
42
43
44
45
46 public void setType(final String type)
47 {
48 this.type = type;
49 }
50
51
52
53
54 private final List<Condition> conditions = new ArrayList<Condition>();
55
56
57
58
59
60
61 public void addCondition(final Condition condition)
62 {
63 this.conditions.add(condition);
64 }
65
66
67
68
69
70
71 public List<Condition> getConditions()
72 {
73 return this.conditions;
74 }
75
76
77
78
79 private final Map<String, String[]> outputPaths = new LinkedHashMap<String, String[]>();
80
81
82
83
84
85
86
87 public void addOutputPath(
88 final String path,
89 final String patterns)
90 {
91 this.outputPaths.put(
92 path,
93 AndroMDAppUtils.stringToArray(patterns));
94 }
95
96
97
98
99
100
101 final Map<String, String[]> getOutputPaths()
102 {
103 return this.outputPaths;
104 }
105 }