2 |
2 |
3 import java.util.List; |
3 import java.util.List; |
4 |
4 |
5 import static de.unixwork.uwproj.Util.shId; |
5 import static de.unixwork.uwproj.Util.shId; |
6 |
6 |
7 public class NamedDependency { |
7 public final class NamedDependency { |
8 private String name; |
8 private final String name; |
9 private List<Dependency> subdependencies; |
9 private final List<Dependency> subdependencies; |
10 |
10 |
11 public String getName() { |
11 public NamedDependency(String name, List<Dependency> subdependencies) { |
12 return name; |
|
13 } |
|
14 |
|
15 public void setName(String name) { |
|
16 this.name = name; |
12 this.name = name; |
|
13 this.subdependencies = subdependencies; |
17 } |
14 } |
18 |
15 |
19 public String getId() { |
16 public String getId() { |
20 return shId(name); |
17 return shId(name); |
21 } |
18 } |
22 |
19 |
|
20 public String getName() { |
|
21 return name; |
|
22 } |
|
23 |
23 public List<Dependency> getSubdependencies() { |
24 public List<Dependency> getSubdependencies() { |
24 return subdependencies; |
25 return subdependencies; |
25 } |
26 } |
26 |
|
27 public void setSubdependencies(List<Dependency> subdependency) { |
|
28 this.subdependencies = subdependency; |
|
29 } |
|
30 } |
27 } |