]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/GenBuild/org/tianocore/build/id/Identification.java
Remove some unused code and adjust some code format. Modules build with FPD sequence...
[mirror_edk2.git] / Tools / Source / GenBuild / org / tianocore / build / id / Identification.java
index abf5c1bade3aec2108da3d5286e1f5847255f481..5c77e8eb67925b79f4ea0e045d08eca8da510c47 100644 (file)
@@ -1,7 +1,24 @@
+/** @file\r
+This file is to define  Identification class.\r
+\r
+Copyright (c) 2006, Intel Corporation\r
+All rights reserved. This program and the accompanying materials\r
+are licensed and made available under the terms and conditions of the BSD License\r
+which accompanies this distribution.  The full text of the license may be found at\r
+http://opensource.org/licenses/bsd-license.php\r
+\r
+THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+**/\r
+\r
 package org.tianocore.build.id;\r
 \r
-import org.tianocore.build.global.GlobalData;\r
 \r
+/**\r
+  This class is used to identify with its GUID and Version. \r
+\r
+  @since GenBuild 1.0\r
+**/\r
 public class Identification {\r
 \r
     String name;\r
@@ -10,19 +27,29 @@ public class Identification {
     \r
     String version;\r
     \r
-    String type; // Optional\r
-    \r
+    /**\r
+      @param name Name\r
+      @param guid Guid\r
+      @param version Version\r
+    **/\r
     Identification(String name, String guid, String version){\r
         this.name = name;\r
         this.guid = guid;\r
         this.version = version;\r
     }\r
     \r
+    /**\r
+      @param guid Guid\r
+      @param version Version\r
+    **/\r
     Identification(String guid, String version){\r
         this.guid = guid;\r
         this.version = version;\r
     }\r
     \r
+    /* (non-Javadoc)\r
+      @see java.lang.Object#equals(java.lang.Object)\r
+    **/\r
     public boolean equals(Object obj) {\r
         if (obj instanceof Identification) {\r
             Identification id = (Identification)obj;\r
@@ -44,14 +71,23 @@ public class Identification {
         }\r
     }\r
     \r
+    /**\r
+      @param name Name\r
+    **/\r
     public void setName(String name) {\r
         this.name = name;\r
     }\r
 \r
+    /**\r
+      @param guid Guid\r
+    **/\r
     public void setGuid(String guid) {\r
         this.guid = guid;\r
     }\r
 \r
+    /**\r
+      @param version Version\r
+    **/\r
     public void setVersion(String version) {\r
         this.version = version;\r
     }\r
@@ -60,14 +96,23 @@ public class Identification {
         return guid;\r
     }\r
 \r
+    /**\r
+      @return String Name\r
+    **/\r
     public String getName() {\r
         return name;\r
     }\r
 \r
+    /**\r
+      @return String Version\r
+    **/\r
     public String getVersion() {\r
         return version;\r
     }\r
     \r
+    /* (non-Javadoc)\r
+      @see java.lang.Object#hashCode()\r
+    **/\r
     public int hashCode(){\r
         return guid.toLowerCase().hashCode();\r
     }\r