Initial import.
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / global / DpFileList.java
CommitLineData
878ddf1f 1/** @file\r
2This file is used to nest elements corresponding to DpFile\r
3\r
4Copyright (c) 2006, Intel Corporation\r
5All rights reserved. This program and the accompanying materials\r
6are licensed and made available under the terms and conditions of the BSD License\r
7which accompanies this distribution. The full text of the license may be found at\r
8http://opensource.org/licenses/bsd-license.php\r
9\r
10THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
11WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
12\r
13**/\r
14package org.tianocore.build.global;\r
15\r
16import java.util.ArrayList;\r
17import java.util.List;\r
18\r
19/**\r
20 DpFileList is a container of Dpfile at the point of ANT task/datatype\r
21 **/\r
22public class DpFileList {\r
23 ///\r
24 /// Keep all the file names from all nested DpFile\r
25 ///\r
26 List<String> nameList = new ArrayList<String>();\r
27\r
28 /**\r
29 Empty constructor just in case\r
30 **/\r
31 public DpFileList() {\r
32 }\r
33\r
34 /**\r
35 Empty execute method of ANT task. ANT will call it even we don't need it.\r
36 **/\r
37 public void execute() {\r
38 }\r
39\r
40 /**\r
41 Standard add method of ANT task, for nested DpFile type of elements. It just\r
42 simply fetch the files list from DpFile and put them in its own nameList.\r
43\r
44 @param f a DpFile object which will be instantiated by ANT\r
45 **/\r
46 public void addConfiguredFile(DpFile f) {\r
47 this.nameList.addAll(f.getList());\r
48 }\r
49}\r
50\r