|
1 package de.unixwork.uwproj; |
|
2 |
|
3 /* |
|
4 * To change this license header, choose License Headers in Project Properties. |
|
5 * To change this template file, choose Tools | Templates |
|
6 * and open the template in the editor. |
|
7 */ |
|
8 |
|
9 /** |
|
10 * |
|
11 * @author olaf |
|
12 */ |
|
13 public class Define { |
|
14 private String name; |
|
15 private String value; |
|
16 |
|
17 public Define() { |
|
18 |
|
19 } |
|
20 |
|
21 public Define(String name, String value) { |
|
22 this.name = name; |
|
23 this.value = value; |
|
24 } |
|
25 |
|
26 public String getName() { |
|
27 return name; |
|
28 } |
|
29 |
|
30 public void setName(String name) { |
|
31 this.name = name; |
|
32 } |
|
33 |
|
34 public String getValue() { |
|
35 return value; |
|
36 } |
|
37 |
|
38 public void setValue(String value) { |
|
39 this.value = value; |
|
40 } |
|
41 |
|
42 public String toFlags() { |
|
43 if(name == null) { |
|
44 return ""; |
|
45 } else if(value == null) { |
|
46 return "-D"+name; |
|
47 } else { |
|
48 return "-D"+name + "=" + value; |
|
49 } |
|
50 } |
|
51 } |