]>
Commit | Line | Data |
---|---|---|
93f5dd0a | 1 | /** @file\r |
2 | This file is used to nest elements which is meant for file path\r | |
3 | \r | |
4 | Copyright (c) 2006, Intel Corporation\r | |
5 | All rights reserved. This program and the accompanying materials\r | |
6 | are licensed and made available under the terms and conditions of the BSD License\r | |
7 | which accompanies this distribution. The full text of the license may be found at\r | |
8 | http://opensource.org/licenses/bsd-license.php\r | |
9 | \r | |
10 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r | |
11 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r | |
12 | \r | |
13 | **/\r | |
14 | package org.tianocore.framework.tasks;\r | |
15 | \r | |
16 | /**\r | |
17 | FileArg class is defined to represent tool's argument which specifies file path.\r | |
18 | **/\r | |
19 | public class FileArg extends ToolArg {\r | |
20 | /**\r | |
21 | Default constructor\r | |
22 | **/\r | |
23 | public FileArg() {\r | |
24 | }\r | |
25 | \r | |
26 | /**\r | |
27 | Constructor which accepts argument prefix and its value as parameters\r | |
28 | \r | |
29 | @param prefix The prefix of argument\r | |
30 | @param value The value of argument\r | |
31 | **/\r | |
32 | public FileArg(String prefix, String value) {\r | |
33 | super(prefix);\r | |
34 | this.setValue(value);\r | |
35 | }\r | |
36 | \r | |
37 | /**\r | |
38 | Set the prefix and value of an argument\r | |
39 | \r | |
40 | @param prefix The prefix of argument\r | |
41 | @param value The value of argument \r | |
42 | **/\r | |
43 | public void setArg(String prefix, String value) {\r | |
44 | super.setPrefix(prefix);\r | |
45 | this.setValue(value);\r | |
46 | }\r | |
47 | \r | |
48 | /**\r | |
49 | Set the value of an argument\r | |
50 | \r | |
51 | @param value The value of the argument\r | |
52 | **/\r | |
53 | public void setValue(String value) {\r | |
54 | super.setFile(value);\r | |
55 | }\r | |
56 | \r | |
57 | /**\r | |
58 | Add a value of an argument\r | |
59 | \r | |
60 | @param value The value of the argument\r | |
61 | **/\r | |
62 | public void insValue(String value) {\r | |
63 | super.insFile(value);\r | |
64 | }\r | |
65 | }\r |