--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/unixwork/uwproj/PkgConfigPackage.java Mon Feb 04 15:09:39 2019 +0100 @@ -0,0 +1,57 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +package de.unixwork.uwproj; + +import org.w3c.dom.Element; + +/** + * + * @author olaf + */ +public class PkgConfigPackage { + private String name; + private String atleast; + private String maxVersion; + + public static PkgConfigPackage parse(Element e) throws Exception { + PkgConfigPackage p = new PkgConfigPackage(); + String name = Xml.getContent(e); + if(name != null) { + p.setName(name); + } else { + throw new Exception("pkgconfig element: value required"); + } + return p; + } + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public String getAtleast() { + return atleast; + } + + public void setAtleast(String atleast) { + this.atleast = atleast; + } + + public String getMaxVersion() { + return maxVersion; + } + + public void setMaxVersion(String maxVersion) { + this.maxVersion = maxVersion; + } + + public String getPkgConfigParam() { + return name; + } +}