]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identification/PackageDependencies/PackageDependenciesIdentification.java
98a0245797d5f36dcc555bfe45e2e42974f3bd72
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identification / PackageDependencies / PackageDependenciesIdentification.java
1 /** @file
2
3 The file is used to define Package Dependencies Identification
4
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
10
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.
13
14 **/
15
16 package org.tianocore.frameworkwizard.module.Identification.PackageDependencies;
17
18 import java.util.Vector;
19
20 public class PackageDependenciesIdentification {
21
22 //
23 // Define class members
24 //
25 private String name = null;
26
27 private String version = null;
28
29 private String guid = null;
30
31 private Vector<String> supArchList = null;
32
33 private String featureFlag = null;
34
35 public PackageDependenciesIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {
36 this.name = (arg0 == null ? "" : arg0);
37 this.version = (arg1 == null ? "" : arg1);
38 this.guid = (arg2 == null ? "" : arg2);
39 this.featureFlag = (arg3 == null ? "" : arg3);
40 this.supArchList = arg4;
41 }
42
43 public String getFeatureFlag() {
44 return featureFlag;
45 }
46
47 public void setFeatureFlag(String featureFlag) {
48 this.featureFlag = featureFlag;
49 }
50
51 public String getGuid() {
52 return guid;
53 }
54
55 public void setGuid(String guid) {
56 this.guid = guid;
57 }
58
59 public String getName() {
60 return name;
61 }
62
63 public void setName(String name) {
64 this.name = name;
65 }
66
67 public Vector<String> getSupArchList() {
68 return supArchList;
69 }
70
71 public void setSupArchList(Vector<String> supArchList) {
72 this.supArchList = supArchList;
73 }
74
75 public String getVersion() {
76 return version;
77 }
78
79 public void setVersion(String version) {
80 this.version = version;
81 }
82
83 public boolean equals(PackageDependenciesIdentification pdi) {
84 if (this.guid.equals(pdi.guid)) {
85 return true;
86 }
87 return false;
88 }
89 }