src/main/java/de/unixwork/uwproj/PkgConfigPackage.java

changeset 40
b42bfc9e9983
parent 0
38775db5fdf5
child 41
75ee588d5d9e
equal deleted inserted replaced
39:3ca85da78515 40:b42bfc9e9983
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; 1 package de.unixwork.uwproj;
7 2
8 import org.w3c.dom.Element; 3 import org.w3c.dom.Element;
9 4
10 /**
11 *
12 * @author olaf
13 */
14 public class PkgConfigPackage { 5 public class PkgConfigPackage {
15 private String name; 6 private String name;
16 private String atleast; 7 private String atleast;
17 private String maxVersion; 8 private String maxVersion;
18 9
19 public static PkgConfigPackage parse(Element e) throws Exception { 10 public static PkgConfigPackage parse(Element e) throws Exception {
20 PkgConfigPackage p = new PkgConfigPackage(); 11 PkgConfigPackage p = new PkgConfigPackage();
21 String name = Xml.getContent(e); 12 String name = Util.getContent(e);
22 if(name != null) { 13 if(name != null) {
23 p.setName(name); 14 p.setName(name);
24 } else { 15 } else {
25 throw new Exception("pkgconfig element: value required"); 16 throw new Exception("pkgconfig element: value required");
26 } 17 }

mercurial