a13899c5 |
1 | /** @file\r |
2 | \r |
3 | The file is used to define Library Class 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.LibraryClass;\r |
a13899c5 |
17 | \r |
18 | import java.util.Vector;\r |
19 | \r |
55e83b18 |
20 | import org.tianocore.frameworkwizard.module.Identifications.ModuleIdentification;\r |
21 | import org.tianocore.frameworkwizard.packaging.PackageIdentification;\r |
22 | \r |
a13899c5 |
23 | public class LibraryClassIdentification {\r |
24 | private String libraryClassName = null;\r |
25 | \r |
26 | private String usage = null;\r |
27 | \r |
28 | private String recommendedInstanceVersion = null;\r |
29 | \r |
30 | private String recommendedInstanceGuid = null;\r |
31 | \r |
32 | private Vector<String> supArchList = null;\r |
33 | \r |
34 | private String featureFlag = null;\r |
35 | \r |
36 | private Vector<String> supModuleList = null;\r |
37 | \r |
38 | private String help = null;\r |
55e83b18 |
39 | \r |
40 | private ModuleIdentification belongModule = null;\r |
41 | \r |
42 | private PackageIdentification declaredBy = null;\r |
a13899c5 |
43 | \r |
44 | public LibraryClassIdentification() {\r |
45 | \r |
46 | }\r |
47 | \r |
48 | public LibraryClassIdentification(String strName, String strUsage, String strRecommendedInstanceVersion,\r |
49 | String strRecommendedInstanceGuid, Vector<String> vSupArchList,\r |
50 | String strFeatureFlag, Vector<String> vSupModuleList, String strHelp) {\r |
51 | this.libraryClassName = (strName == null ? "" : strName);\r |
52 | this.usage = (strUsage == null ? "" : strUsage);\r |
53 | this.recommendedInstanceVersion = (strRecommendedInstanceVersion == null ? "" : strRecommendedInstanceVersion);\r |
54 | this.recommendedInstanceGuid = (strRecommendedInstanceGuid == null ? "" : strRecommendedInstanceGuid);\r |
55 | this.supArchList = vSupArchList;\r |
56 | this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r |
57 | this.supModuleList = vSupModuleList;\r |
58 | this.help = (strHelp == null ? "" : strHelp);\r |
59 | }\r |
60 | \r |
61 | public String getLibraryClassName() {\r |
62 | return libraryClassName;\r |
63 | }\r |
64 | \r |
65 | public void setLibraryClassName(String libraryClassName) {\r |
66 | this.libraryClassName = libraryClassName;\r |
67 | }\r |
68 | \r |
69 | public String getUsage() {\r |
70 | return usage;\r |
71 | }\r |
72 | \r |
73 | public void setUsage(String usage) {\r |
74 | this.usage = usage;\r |
75 | }\r |
76 | \r |
77 | public String getFeatureFlag() {\r |
78 | return featureFlag;\r |
79 | }\r |
80 | \r |
81 | public void setFeatureFlag(String featureFlag) {\r |
82 | this.featureFlag = featureFlag;\r |
83 | }\r |
84 | \r |
85 | public String getRecommendedInstanceGuid() {\r |
86 | return recommendedInstanceGuid;\r |
87 | }\r |
88 | \r |
89 | public void setRecommendedInstanceGuid(String recommendedInstanceGuid) {\r |
90 | this.recommendedInstanceGuid = recommendedInstanceGuid;\r |
91 | }\r |
92 | \r |
93 | public String getRecommendedInstanceVersion() {\r |
94 | return recommendedInstanceVersion;\r |
95 | }\r |
96 | \r |
97 | public void setRecommendedInstanceVersion(String recommendedInstanceVersion) {\r |
98 | this.recommendedInstanceVersion = recommendedInstanceVersion;\r |
99 | }\r |
100 | \r |
101 | public Vector<String> getSupArchList() {\r |
102 | return supArchList;\r |
103 | }\r |
104 | \r |
105 | public void setSupArchList(Vector<String> supArchList) {\r |
106 | this.supArchList = supArchList;\r |
107 | }\r |
108 | \r |
109 | public boolean equals(LibraryClassIdentification lib) {\r |
110 | if (this.libraryClassName.equals(lib.libraryClassName) && this.usage.equals(lib.getUsage())) {\r |
111 | return true;\r |
112 | }\r |
113 | return false;\r |
114 | }\r |
115 | \r |
116 | public Vector<String> getSupModuleList() {\r |
117 | return supModuleList;\r |
118 | }\r |
119 | \r |
120 | public void setSupModuleList(Vector<String> supModuleList) {\r |
121 | this.supModuleList = supModuleList;\r |
122 | }\r |
123 | \r |
124 | public String getHelp() {\r |
125 | return help;\r |
126 | }\r |
127 | \r |
128 | public void setHelp(String help) {\r |
129 | this.help = help;\r |
130 | }\r |
55e83b18 |
131 | \r |
132 | public ModuleIdentification getBelongModule() {\r |
133 | return belongModule;\r |
134 | }\r |
135 | \r |
136 | public void setBelongModule(ModuleIdentification belongModule) {\r |
137 | this.belongModule = belongModule;\r |
138 | }\r |
139 | \r |
140 | public PackageIdentification getDeclaredBy() {\r |
141 | return declaredBy;\r |
142 | }\r |
143 | \r |
144 | public void setDeclaredBy(PackageIdentification declaredBy) {\r |
145 | this.declaredBy = declaredBy;\r |
146 | }\r |
a13899c5 |
147 | }\r |