]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/CheckTools/src/org/tianocore/CheckTools/ToolInfo.java
2 Tool Definition Class for translating the tools_def.txt entries
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.
16 * This section should complete array values
28 package org
.tianocore
.CheckTools
;
32 public class ToolInfo
extends ArrayList
{
35 /// Define Class Serial Version UID
37 private static final long serialVersionUID
= 2513613555731096258L;
39 private String sTagName
;
41 private String sFamily
;
43 private boolean bValid
;
47 private ArrayList
<String
> aTargetName
= null;
49 private ArrayList
<String
> aCmdCode
= null;
51 private ArrayList
<String
> aCmdName
= null;
53 private ArrayList
<String
> aPath
= null;
55 private ArrayList
<String
> aBadPath
= null;
57 private ArrayList
<String
> aArguments
= null;
69 aTargetName
= new ArrayList
<String
>();
70 aCmdCode
= new ArrayList
<String
>();
71 aCmdName
= new ArrayList
<String
>();
72 aPath
= new ArrayList
<String
>();
73 aArguments
= new ArrayList
<String
>();
74 aBadPath
= new ArrayList
<String
>();
77 public String
getTagName() {
78 return this.sTagName
.trim();
81 public String
getFamily() {
82 return this.sFamily
.trim();
85 public boolean isValid() {
89 public String
getArch() {
90 return this.sArch
.trim();
93 public ArrayList
<String
> getTargetName() {
94 return this.aTargetName
;
97 public String
getTargetName(int id
) {
98 return this.aTargetName
.get(id
).trim();
101 public ArrayList
<String
> getCmdCode() {
102 return this.aCmdCode
;
105 public String
getCmdCode(int id
) {
106 return this.aCmdCode
.get(id
).trim();
109 public ArrayList
<String
> getCmdName() {
110 return this.aCmdName
;
113 public String
getCmdName(int id
) {
114 return this.aCmdName
.get(id
).trim();
117 public ArrayList
<String
> getPath() {
121 public String
getPath(int id
) {
122 return this.aPath
.get(id
).trim();
125 public ArrayList
<String
> getArguments() {
126 return this.aArguments
;
129 public String
getArguments(int id
) {
130 return this.aArguments
.get(id
).trim();
133 public ArrayList
<String
> getBadPath() {
134 return this.aBadPath
;
137 public String
getBadPath(int id
) {
138 return this.aBadPath
.get(id
).trim();
141 public void setTagName(String val
) {
142 this.sTagName
= val
.trim();
145 public void setFamily(String val
) {
146 this.sFamily
= val
.trim();
149 public void setValid() {
153 public void setInvalid() {
157 public void setArch(String val
) {
158 this.sArch
= val
.trim();
161 public void addTargetName(String val
) {
162 this.aTargetName
.add(val
.trim());
165 public void addCmdCode(String val
) {
166 this.aCmdCode
.add(val
.trim());
169 public void addCmdName(String val
) {
170 this.aCmdName
.add(val
.trim());
173 public void addPath(String val
) {
174 this.aPath
.add(val
.trim());
177 public void addArguments(String val
) {
178 this.aArguments
.add(val
.trim());
181 public void addBadPath(String val
) {
182 this.aBadPath
.add(val
.trim());