a13899c5 |
1 | /** @file\r |
2 | \r |
3 | The file is used to define Package Dependencies Identification\r |
4 | \r |
5 | Copyright (c) 2006, Intel Corporation\r |
6 | All rights reserved. This program and the accompanying materials\r |
7 | are licensed and made available under the terms and conditions of the BSD License\r |
8 | which accompanies this distribution. The full text of the license may be found at\r |
9 | http://opensource.org/licenses/bsd-license.php\r |
10 | \r |
11 | THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r |
12 | WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r |
13 | \r |
14 | **/\r |
15 | \r |
79cb6fdb |
16 | package org.tianocore.frameworkwizard.module.Identifications.Externs;\r |
a13899c5 |
17 | \r |
18 | import java.util.Vector;\r |
19 | \r |
3b7a9058 |
20 | import org.tianocore.frameworkwizard.common.EnumerationData;\r |
21 | \r |
a13899c5 |
22 | public class ExternsIdentification {\r |
23 | \r |
24 | //\r |
25 | // Define class members\r |
26 | //\r |
3b7a9058 |
27 | private String name0 = null;\r |
28 | \r |
29 | private String name1 = null;\r |
30 | \r |
31 | private String name2 = null;\r |
32 | \r |
33 | private String name3 = null;\r |
a13899c5 |
34 | \r |
35 | private String type = null;\r |
3b7a9058 |
36 | \r |
a13899c5 |
37 | private Vector<String> supArchList = null;\r |
38 | \r |
39 | private String featureFlag = null;\r |
40 | \r |
3b7a9058 |
41 | public ExternsIdentification(String arg0, String arg1) {\r |
42 | this.name0 = (arg0 == null ? "" : arg0);\r |
a13899c5 |
43 | this.type = (arg1 == null ? "" : arg1);\r |
a13899c5 |
44 | }\r |
45 | \r |
3b7a9058 |
46 | public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, Vector<String> arg4) {\r |
47 | this.name0 = (arg0 == null ? "" : arg0);\r |
48 | this.name1 = (arg1 == null ? "" : arg1);\r |
49 | this.type = (arg2 == null ? "" : arg2);\r |
50 | this.featureFlag = (arg3 == null ? "" : arg3);\r |
51 | this.supArchList = arg4;\r |
a13899c5 |
52 | }\r |
53 | \r |
3b7a9058 |
54 | public ExternsIdentification(String arg0, String arg1, String arg2, String arg3, String arg4, String arg5,\r |
55 | Vector<String> arg6) {\r |
56 | this.name0 = (arg0 == null ? "" : arg0);\r |
57 | this.name1 = (arg1 == null ? "" : arg1);\r |
58 | this.name2 = (arg2 == null ? "" : arg2);\r |
59 | this.name3 = (arg3 == null ? "" : arg3);\r |
60 | this.type = (arg4 == null ? "" : arg4);\r |
61 | this.featureFlag = (arg5 == null ? "" : arg5);\r |
62 | this.supArchList = arg6;\r |
a13899c5 |
63 | }\r |
64 | \r |
3b7a9058 |
65 | public String getFeatureFlag() {\r |
66 | return featureFlag;\r |
a13899c5 |
67 | }\r |
68 | \r |
3b7a9058 |
69 | public void setFeatureFlag(String featureFlag) {\r |
70 | this.featureFlag = featureFlag;\r |
a13899c5 |
71 | }\r |
72 | \r |
73 | public Vector<String> getSupArchList() {\r |
74 | return supArchList;\r |
75 | }\r |
76 | \r |
77 | public void setSupArchList(Vector<String> supArchList) {\r |
78 | this.supArchList = supArchList;\r |
79 | }\r |
3b7a9058 |
80 | \r |
a13899c5 |
81 | public boolean equals(ExternsIdentification pi) {\r |
3b7a9058 |
82 | if (this.type.equals(pi.type)) {\r |
83 | if (this.type.equals(EnumerationData.EXTERNS_SPECIFICATION)) {\r |
84 | if (this.name0.equals(pi.name0)) {\r |
85 | return true;\r |
86 | }\r |
87 | }\r |
88 | if (this.type.equals(EnumerationData.EXTERNS_IMAGE)) {\r |
89 | if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) {\r |
90 | return true;\r |
91 | }\r |
92 | }\r |
93 | if (this.type.equals(EnumerationData.EXTERNS_LIBRARY)) {\r |
94 | if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) {\r |
95 | return true;\r |
96 | }\r |
97 | }\r |
98 | if (this.type.equals(EnumerationData.EXTERNS_CALL_BACK)) {\r |
99 | if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1)) {\r |
100 | return true;\r |
101 | }\r |
102 | }\r |
103 | if (this.type.equals(EnumerationData.EXTERNS_DRIVER)) {\r |
104 | if (this.name0.equals(pi.name0) && this.name1.equals(pi.name1) && this.name2.equals(pi.name2) && this.name3.equals(pi.name3)) {\r |
105 | return true;\r |
106 | }\r |
107 | }\r |
a13899c5 |
108 | }\r |
3b7a9058 |
109 | \r |
a13899c5 |
110 | return false;\r |
111 | }\r |
112 | \r |
113 | public String getType() {\r |
114 | return type;\r |
115 | }\r |
116 | \r |
117 | public void setType(String type) {\r |
118 | this.type = type;\r |
119 | }\r |
3b7a9058 |
120 | \r |
121 | public String getName0() {\r |
122 | return name0;\r |
123 | }\r |
124 | \r |
125 | public void setName0(String name0) {\r |
126 | this.name0 = name0;\r |
127 | }\r |
128 | \r |
129 | public String getName1() {\r |
130 | return name1;\r |
131 | }\r |
132 | \r |
133 | public void setName1(String name1) {\r |
134 | this.name1 = name1;\r |
135 | }\r |
136 | \r |
137 | public String getName2() {\r |
138 | return name2;\r |
139 | }\r |
140 | \r |
141 | public void setName2(String name2) {\r |
142 | this.name2 = name2;\r |
143 | }\r |
144 | \r |
145 | public String getName3() {\r |
146 | return name3;\r |
147 | }\r |
148 | \r |
149 | public void setName3(String name3) {\r |
150 | this.name3 = name3;\r |
151 | }\r |
a13899c5 |
152 | }\r |