]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkTasks/org/tianocore/framework/tasks/InputFile.java
2 This file is used to nest elements which is meant for specifying files
4 Copyright (c) 2006, Intel Corporation
5 All rights reserved. This program and the accompanying materials
6 are licensed and made available under the terms and conditions of the BSD License
7 which accompanies this distribution. The full text of the license may be found at
8 http://opensource.org/licenses/bsd-license.php
10 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
11 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
14 package org
.tianocore
.framework
.tasks
;
17 import java
.util
.ArrayList
;
18 import java
.util
.List
;
19 import java
.util
.StringTokenizer
;
21 public class InputFile
implements NestElement
{
23 InputFile nested element Class
25 -name : name of input file
26 -file : name of file including input files
28 private String name
= "";
30 private List
<String
> nameList
= new ArrayList
<String
>();
33 get class member "name"
34 @returns name parameter
36 public String
getName() {
41 set class member "name"
42 @param name name of input file
44 public void setName(String name
) {
45 this.name
= " " + name
;
48 public String
toString() {
53 get class member "file"
54 @returns file parameter
56 public File
getFile() {
61 set class member "file"
62 @param ext name of file including input files
64 public void setFile(File file
) {
69 set class member "list"
71 @param fileNameList name list of include paths, sperated by space, tab,
74 public void setList(String fileNameList
) {
75 if (fileNameList
!= null && fileNameList
.length() > 0) {
76 StringTokenizer tokens
= new StringTokenizer(fileNameList
, " \t,;", false);
77 while (tokens
.hasMoreTokens()) {
78 String fileName
= tokens
.nextToken().trim();
79 if (fileName
.length() > 0) {
80 this.nameList
.add(fileName
);
87 get class member "list"
89 @returns The include paths list.
91 public List
<String
> getList() {