]> git.proxmox.com Git - mirror_edk2.git/blame - Tools/Source/FrameworkWizard/src/org/tianocore/frameworkwizard/common/Identifications/Identification.java
1. Restructure some folders and files
[mirror_edk2.git] / Tools / Source / FrameworkWizard / src / org / tianocore / frameworkwizard / common / Identifications / Identification.java
CommitLineData
79cb6fdb 1/** @file\r
2 \r
3 The file is used to save basic information\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
16package org.tianocore.frameworkwizard.common.Identifications;\r
17\r
18public class Identification {\r
19\r
20 ///\r
21 /// Define class members\r
22 ///\r
23 private String name;\r
24 \r
25 private String guid;\r
26 \r
27 private String version;\r
28 \r
29 private String path;\r
30 \r
31 public Identification(String name, String guid, String version) {\r
32 this.name = name;\r
33 this.guid = guid;\r
34 this.version = version;\r
35 }\r
36 \r
37 public Identification() {\r
38 \r
39 }\r
40 \r
41 public Identification(String name, String guid, String version, String path) {\r
42 this.name = name;\r
43 this.guid = guid;\r
44 this.version = version;\r
45 this.path = path;\r
46 }\r
47 \r
48 public boolean equals(Object obj) {\r
49 if (obj instanceof Identification) {\r
50 Identification id = (Identification)obj;\r
51 if (path.equals(id.path)) {\r
52 //if ( name.equals(id.name) && guid.equals(id.guid) && version.equals(id.version)) {\r
53 return true;\r
54 }\r
55 return false;\r
56 }\r
57 else {\r
58 return super.equals(obj);\r
59 }\r
60 }\r
61 \r
62 public void setName(String name) {\r
63 this.name = name;\r
64 }\r
65\r
66 public void setGuid(String guid) {\r
67 this.guid = guid;\r
68 }\r
69\r
70 public void setVersion(String version) {\r
71 this.version = version;\r
72 }\r
73 \r
74 public void setPath(String path) {\r
75 this.path = path;\r
76 }\r
77\r
78 public String getGuid() {\r
79 return guid;\r
80 }\r
81\r
82 public String getName() {\r
83 return name;\r
84 }\r
85\r
86 public String getVersion() {\r
87 return version;\r
88 }\r
89\r
90 public String getPath() {\r
91 return path;\r
92 }\r
93}\r