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

Sat, 03 Aug 2019 17:45:03 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 03 Aug 2019 17:45:03 +0200
changeset 8
82cd9f1d94cb
parent 0
38775db5fdf5
child 40
b42bfc9e9983
permissions
-rw-r--r--

add c++ compiler detection

/*
 * 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;
    }
}

mercurial