]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/Externs/ExternsIdentification.java
Changed spelling to manifest
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identifications / Externs / ExternsIdentification.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.Identifications.Externs;
17
18 import java.util.Vector;
19
20 import org.tianocore.frameworkwizard.common.EnumerationData;
21
22 public class ExternsIdentification {
23
24 //
25 // Define class members
26 //
27 private String name0 = null;
28
29 private String name1 = null;
30
31 private String name2 = null;
32
33 private String name3 = null;
34
35 private String type = null;
36
37 private Vector<String> supArchList = null;
38
39 private String featureFlag = null;
40
41 public ExternsIdentification(String arg0, String arg1) {
42 this.name0 = (arg0 == null ? "" : arg0);
43 this.type = (arg1 == null ? "" : arg1);
44 }
45
46 public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {
47 this.name0 = (arg0 == null ? "" : arg0);
48 this.name1 = (arg1 == null ? "" : arg1);
49 this.type = (arg2 == null ? "" : arg2);
50 this.featureFlag = (arg3 == null ? "" : arg3);
51 this.supArchList = arg4;
52 }
53
54 public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5,
55 Vector<String> arg6) {
56 this.name0 = (arg0 == null ? "" : arg0);
57 this.name1 = (arg1 == null ? "" : arg1);
58 this.name2 = (arg2 == null ? "" : arg2);
59 this.name3 = (arg3 == null ? "" : arg3);
60 this.type = (arg4 == null ? "" : arg4);
61 this.featureFlag = (arg5 == null ? "" : arg5);
62 this.supArchList = arg6;
63 }
64
65 public String getFeatureFlag() {
66 return featureFlag;
67 }
68
69 public void setFeatureFlag(String featureFlag) {
70 this.featureFlag = featureFlag;
71 }
72
73 public Vector<String> getSupArchList() {
74 return supArchList;
75 }
76
77 public void setSupArchList(Vector<String> supArchList) {
78 this.supArchList = supArchList;
79 }
80
81 public boolean equals(ExternsIdentification pi) {
82 if (this.type.equals(pi.type)) {
83 if (this.type.equals(EnumerationData.EXTERNS_SPECIFICATION)) {
84 if (this.name0.equals(pi.name0)) {
85 return true;
86 }
87 }
88 if (this.type.equals(EnumerationData.EXTERNS_IMAGE)) {
89 if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) {
90 return true;
91 }
92 }
93 if (this.type.equals(EnumerationData.EXTERNS_LIBRARY)) {
94 if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) {
95 return true;
96 }
97 }
98 if (this.type.equals(EnumerationData.EXTERNS_CALL_BACK)) {
99 if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) {
100 return true;
101 }
102 }
103 if (this.type.equals(EnumerationData.EXTERNS_DRIVER)) {
104 if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1) && this.name2.equals(pi.name2) && this.name3.equals(pi.name3)) {
105 return true;
106 }
107 }
108 }
109
110 return false;
111 }
112
113 public String getType() {
114 return type;
115 }
116
117 public void setType(String type) {
118 this.type = type;
119 }
120
121 public String getName0() {
122 return name0;
123 }
124
125 public void setName0(String name0) {
126 this.name0 = name0;
127 }
128
129 public String getName1() {
130 return name1;
131 }
132
133 public void setName1(String name1) {
134 this.name1 = name1;
135 }
136
137 public String getName2() {
138 return name2;
139 }
140
141 public void setName2(String name2) {
142 this.name2 = name2;
143 }
144
145 public String getName3() {
146 return name3;
147 }
148
149 public void setName3(String name3) {
150 this.name3 = name3;
151 }
152 }