3 The file is used to define Source Files Identification
5 Copyright (c) 2006, Intel Corporation
6 All rights reserved. This program and the accompanying materials
7 are licensed and made available under the terms and conditions of the BSD License
8 which accompanies this distribution. The full text of the license may be found at
9 http://opensource.org/licenses/bsd-license.php
11 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
12 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
15 package org
.tianocore
.frameworkwizard
.module
.Identifications
.SourceFiles
;
17 import java
.util
.Vector
;
19 public class SourceFilesIdentification
{
21 private String filename
= null;
23 private String tagName
= null;
25 private String toolCode
= null;
27 private String toolChainFamily
= null;
29 private Vector
<String
> supArchList
= null;
31 private String featureFlag
= null;
33 public SourceFilesIdentification(String strFilename
, String strTagName
, String strToolCode
,
34 String strToolChainFamily
, String strFeatureFlag
, Vector
<String
> arch
) {
35 this.filename
= (strFilename
== null ?
"" : strFilename
);
36 this.tagName
= (strTagName
== null ?
"" : strTagName
);
37 this.toolCode
= (strToolCode
== null ?
"" : strToolCode
);
38 this.toolChainFamily
= (strToolChainFamily
== null ?
"" : strToolChainFamily
);
39 this.featureFlag
= (strFeatureFlag
== null ?
"" : strFeatureFlag
);
40 this.supArchList
= arch
;
43 public String
getFeatureFlag() {
47 public void setFeatureFlag(String featureFlag
) {
48 this.featureFlag
= featureFlag
;
51 public String
getFilename() {
55 public void setFilename(String filename
) {
56 this.filename
= filename
;
59 public Vector
<String
> getSupArchList() {
63 public void setSupArchList(Vector
<String
> supArchList
) {
64 this.supArchList
= supArchList
;
67 public String
getTagName() {
71 public void setTagName(String tagName
) {
72 this.tagName
= tagName
;
75 public String
getToolChainFamily() {
76 return toolChainFamily
;
79 public void setToolChainFamily(String toolChainFamily
) {
80 this.toolChainFamily
= toolChainFamily
;
83 public String
getToolCode() {
87 public void setToolCode(String toolCode
) {
88 this.toolCode
= toolCode
;
91 public boolean equals(SourceFilesIdentification sfid
) {
92 if (this.filename
.equals(sfid
.filename
) && this.tagName
.equals(sfid
.tagName
)
93 && this.toolCode
.equals(sfid
.toolCode
) && this.toolChainFamily
.equals(sfid
.toolChainFamily
)
94 && this.featureFlag
.equals(sfid
.featureFlag
)
95 && this.supArchList
.toString().equals(sfid
.supArchList
.toString())) {