]>
Commit | Line | Data |
---|---|---|
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 | |
16 | package org.tianocore.frameworkwizard.module.Identification.LibraryClass;\r | |
17 | \r | |
18 | import java.util.Vector;\r | |
19 | \r | |
20 | public class LibraryClassIdentification {\r | |
21 | private String libraryClassName = null;\r | |
22 | \r | |
23 | private String usage = null;\r | |
24 | \r | |
25 | private String recommendedInstanceVersion = null;\r | |
26 | \r | |
27 | private String recommendedInstanceGuid = null;\r | |
28 | \r | |
29 | private Vector<String> supArchList = null;\r | |
30 | \r | |
31 | private String featureFlag = null;\r | |
32 | \r | |
33 | private Vector<String> supModuleList = null;\r | |
34 | \r | |
35 | private String help = null;\r | |
36 | \r | |
37 | public LibraryClassIdentification() {\r | |
38 | \r | |
39 | }\r | |
40 | \r | |
41 | public LibraryClassIdentification(String strName, String strUsage, String strRecommendedInstanceVersion,\r | |
42 | String strRecommendedInstanceGuid, Vector<String> vSupArchList,\r | |
43 | String strFeatureFlag, Vector<String> vSupModuleList, String strHelp) {\r | |
44 | this.libraryClassName = (strName == null ? "" : strName);\r | |
45 | this.usage = (strUsage == null ? "" : strUsage);\r | |
46 | this.recommendedInstanceVersion = (strRecommendedInstanceVersion == null ? "" : strRecommendedInstanceVersion);\r | |
47 | this.recommendedInstanceGuid = (strRecommendedInstanceGuid == null ? "" : strRecommendedInstanceGuid);\r | |
48 | this.supArchList = vSupArchList;\r | |
49 | this.featureFlag = (strFeatureFlag == null ? "" : strFeatureFlag);\r | |
50 | this.supModuleList = vSupModuleList;\r | |
51 | this.help = (strHelp == null ? "" : strHelp);\r | |
52 | }\r | |
53 | \r | |
54 | public String getLibraryClassName() {\r | |
55 | return libraryClassName;\r | |
56 | }\r | |
57 | \r | |
58 | public void setLibraryClassName(String libraryClassName) {\r | |
59 | this.libraryClassName = libraryClassName;\r | |
60 | }\r | |
61 | \r | |
62 | public String getUsage() {\r | |
63 | return usage;\r | |
64 | }\r | |
65 | \r | |
66 | public void setUsage(String usage) {\r | |
67 | this.usage = usage;\r | |
68 | }\r | |
69 | \r | |
70 | public String getFeatureFlag() {\r | |
71 | return featureFlag;\r | |
72 | }\r | |
73 | \r | |
74 | public void setFeatureFlag(String featureFlag) {\r | |
75 | this.featureFlag = featureFlag;\r | |
76 | }\r | |
77 | \r | |
78 | public String getRecommendedInstanceGuid() {\r | |
79 | return recommendedInstanceGuid;\r | |
80 | }\r | |
81 | \r | |
82 | public void setRecommendedInstanceGuid(String recommendedInstanceGuid) {\r | |
83 | this.recommendedInstanceGuid = recommendedInstanceGuid;\r | |
84 | }\r | |
85 | \r | |
86 | public String getRecommendedInstanceVersion() {\r | |
87 | return recommendedInstanceVersion;\r | |
88 | }\r | |
89 | \r | |
90 | public void setRecommendedInstanceVersion(String recommendedInstanceVersion) {\r | |
91 | this.recommendedInstanceVersion = recommendedInstanceVersion;\r | |
92 | }\r | |
93 | \r | |
94 | public Vector<String> getSupArchList() {\r | |
95 | return supArchList;\r | |
96 | }\r | |
97 | \r | |
98 | public void setSupArchList(Vector<String> supArchList) {\r | |
99 | this.supArchList = supArchList;\r | |
100 | }\r | |
101 | \r | |
102 | public boolean equals(LibraryClassIdentification lib) {\r | |
103 | if (this.libraryClassName.equals(lib.libraryClassName) && this.usage.equals(lib.getUsage())) {\r | |
104 | return true;\r | |
105 | }\r | |
106 | return false;\r | |
107 | }\r | |
108 | \r | |
109 | public Vector<String> getSupModuleList() {\r | |
110 | return supModuleList;\r | |
111 | }\r | |
112 | \r | |
113 | public void setSupModuleList(Vector<String> supModuleList) {\r | |
114 | this.supModuleList = supModuleList;\r | |
115 | }\r | |
116 | \r | |
117 | public String getHelp() {\r | |
118 | return help;\r | |
119 | }\r | |
120 | \r | |
121 | public void setHelp(String help) {\r | |
122 | this.help = help;\r | |
123 | }\r | |
124 | }\r |