--- a/src/main/java/de/unixwork/uwproj/Flags.java Wed Sep 06 21:08:04 2023 +0200 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,56 +0,0 @@ -/* - * 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 Flags { - private String varName; - private String value; - private boolean exec = false; - - public static Flags parse(Element e) { - Flags f = new Flags(); - f.varName = e.getNodeName().toUpperCase(); - String value = Xml.getContent(e); - f.value = value == null ? "" : value; - - String type = e.getAttribute("type"); - if(type != null && type.equals("exec")) { - f.exec = true; - } - - return f; - } - - public String getVarName() { - return varName; - } - - public void setVarName(String varName) { - this.varName = varName; - } - - public String getValue() { - return value; - } - - public void setValue(String value) { - this.value = value; - } - - public boolean isExec() { - return exec; - } - - public void setExec(boolean exec) { - this.exec = exec; - } -}