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