]> git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/module/Identifications/PcdCoded/PcdCodedIdentification.java
remove unnecessary check for NULL pointer.
[mirror_edk2.git] / Tools / Java / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / module / Identifications / PcdCoded / PcdCodedIdentification.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.PcdCoded;
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 PcdCodedIdentification {
24
25 //
26 // Define class members
27 //
28 private String name = null;
29
30 private String guid = null;
31
32 private String featureFlag = null;
33
34 private Vector<String> supArchList = null;
35
36 private String value = null;
37
38 private String help = null;
39
40 private String type = null;
41
42 private String usage = null;
43
44 private String tokenSpaceGuidCName = null;
45
46 private String token = null;
47
48 private String datumType = null;
49
50 private ModuleIdentification belongModule = null;
51
52 private PackageIdentification declaredBy = null;
53
54 public PcdCodedIdentification(String arg0, String arg1, String arg2, Vector<String> arg3, String arg4, String arg5, String arg6, String arg7) {
55 this.name = (arg0 == null ? "" : arg0);
56 this.guid = (arg1 == null ? "" : arg1);
57 this.featureFlag = (arg2 == null ? "" : arg2);
58 this.supArchList = arg3;
59 this.value = (arg4 == null ? "" : arg4);
60 this.help = (arg5 == null ? "" : arg5);
61 this.type = (arg6 == null ? "" : arg6);
62 this.usage = (arg7 == null ? "" : arg7);
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 String getName() {
74 return name;
75 }
76
77 public void setName(String name) {
78 this.name = name;
79 }
80
81 public Vector<String> getSupArchList() {
82 return supArchList;
83 }
84
85 public void setSupArchList(Vector<String> supArchList) {
86 this.supArchList = supArchList;
87 }
88
89 public boolean equals(PcdCodedIdentification pi) {
90 if (this.name.equals(pi.name)) {
91 return true;
92 }
93 return false;
94 }
95
96 public String getGuid() {
97 return guid;
98 }
99
100 public void setGuid(String guid) {
101 this.guid = guid;
102 }
103
104 public String getHelp() {
105 return help;
106 }
107
108 public void setHelp(String help) {
109 this.help = help;
110 }
111
112 public String getType() {
113 return type;
114 }
115
116 public void setType(String type) {
117 this.type = type;
118 }
119
120 public String getValue() {
121 return value;
122 }
123
124 public void setValue(String value) {
125 this.value = value;
126 }
127
128 public String getUsage() {
129 return usage;
130 }
131
132 public void setUsage(String usage) {
133 this.usage = usage;
134 }
135
136 public ModuleIdentification getBelongModule() {
137 return belongModule;
138 }
139
140 public void setBelongModule(ModuleIdentification belongModule) {
141 this.belongModule = belongModule;
142 }
143
144 public PackageIdentification getDeclaredBy() {
145 return declaredBy;
146 }
147
148 public void setDeclaredBy(PackageIdentification declaredBy) {
149 this.declaredBy = declaredBy;
150 }
151
152 public String getToken() {
153 return token;
154 }
155
156 public void setToken(String token) {
157 this.token = token;
158 }
159
160 public String getTokenSpaceGuidCName() {
161 return tokenSpaceGuidCName;
162 }
163
164 public void setTokenSpaceGuidCName(String tokenSpaceGuidCName) {
165 this.tokenSpaceGuidCName = tokenSpaceGuidCName;
166 }
167
168 public String getDatumType() {
169 return datumType;
170 }
171
172 public void setDatumType(String datumType) {
173 this.datumType = datumType;
174 }
175 }