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