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

changeset 0
38775db5fdf5
child 40
b42bfc9e9983
equal deleted inserted replaced
-1:000000000000 0:38775db5fdf5
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;
7
8 import java.util.List;
9 import java.util.LinkedList;
10
11 /**
12 *
13 * @author olaf
14 */
15 public class OptionValue {
16 Option option;
17
18 String value;
19
20 TargetData targetData = new TargetData();
21
22 public OptionValue(Option opt) {
23 option = opt;
24 }
25
26 public String getValue() {
27 return value;
28 }
29
30 public void setValue(String value) {
31 this.value = value;
32 }
33
34 public List<String> getDependencies() {
35 return targetData.getDependencies();
36 }
37
38 public List<Define> getDefines() {
39 return targetData.getDefines();
40 }
41
42 public void setTargetData(TargetData data) {
43 targetData = data;
44 }
45
46 public String getFunc() {
47 return option.getValueFunc(value);
48 }
49
50 public String getMake() {
51 return targetData.getMake();
52 }
53
54 public boolean hasMake() {
55 return targetData.getMake().trim().length() > 0;
56 }
57 }

mercurial