13 String name = Util.getContent(e); |
14 String name = Util.getContent(e); |
14 if (name.isBlank()) { |
15 if (name.isBlank()) { |
15 throw new Exception("pkgconfig element: value required"); |
16 throw new Exception("pkgconfig element: value required"); |
16 } else { |
17 } else { |
17 p.setName(name); |
18 p.setName(name); |
|
19 p.setId(Util.shId(name)); |
18 } |
20 } |
19 p.setAtleast(e.getAttribute("atleast")); |
21 p.setAtleast(e.getAttribute("atleast")); |
20 p.setExact(e.getAttribute("exact")); |
22 p.setExact(e.getAttribute("exact")); |
21 p.setMax(e.getAttribute("max")); |
23 p.setMax(e.getAttribute("max")); |
22 return p; |
24 return p; |
|
25 } |
|
26 |
|
27 public String getId() { |
|
28 return id; |
|
29 } |
|
30 |
|
31 public void setId(String id) { |
|
32 this.id = id; |
23 } |
33 } |
24 |
34 |
25 public String getName() { |
35 public String getName() { |
26 return name; |
36 return name; |
27 } |
37 } |