--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/main/java/de/unixwork/uwproj/OptionDefault.java Mon Feb 04 15:09:39 2019 +0100 @@ -0,0 +1,49 @@ +/* + * 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; + +/** + * + * @author olaf + */ +public class OptionDefault { + private Option option; + private String value; + private String platform; + + public OptionDefault(Option opt) { + option = opt; + } + + public String getValueName() { + return value; + } + + public void setValueName(String value) { + this.value = value; + } + + public String getPlatform() { + return platform; + } + + public void setPlatform(String platform) { + this.platform = platform; + } + + public String getFunc() { + return option.getValueFunc(value); + } + + public OptionValue getValue() { + for(OptionValue val : option.getValues()) { + if(val.getValue().equals(value)) { + return val; + } + } + return null; + } +}