|
1 /* |
|
2 * To change this license header, choose License Headers in Project Properties. |
|
3 * To change this template file, choose Tools | Templates |
|
4 * and open the template in the editor. |
|
5 */ |
|
6 package de.unixwork.uwproj; |
|
7 |
|
8 import org.w3c.dom.Element; |
|
9 |
|
10 /** |
|
11 * |
|
12 * @author olaf |
|
13 */ |
|
14 public class PkgConfigPackage { |
|
15 private String name; |
|
16 private String atleast; |
|
17 private String maxVersion; |
|
18 |
|
19 public static PkgConfigPackage parse(Element e) throws Exception { |
|
20 PkgConfigPackage p = new PkgConfigPackage(); |
|
21 String name = Xml.getContent(e); |
|
22 if(name != null) { |
|
23 p.setName(name); |
|
24 } else { |
|
25 throw new Exception("pkgconfig element: value required"); |
|
26 } |
|
27 return p; |
|
28 } |
|
29 |
|
30 public String getName() { |
|
31 return name; |
|
32 } |
|
33 |
|
34 public void setName(String name) { |
|
35 this.name = name; |
|
36 } |
|
37 |
|
38 public String getAtleast() { |
|
39 return atleast; |
|
40 } |
|
41 |
|
42 public void setAtleast(String atleast) { |
|
43 this.atleast = atleast; |
|
44 } |
|
45 |
|
46 public String getMaxVersion() { |
|
47 return maxVersion; |
|
48 } |
|
49 |
|
50 public void setMaxVersion(String maxVersion) { |
|
51 this.maxVersion = maxVersion; |
|
52 } |
|
53 |
|
54 public String getPkgConfigParam() { |
|
55 return name; |
|
56 } |
|
57 } |