]>
git.proxmox.com Git - mirror_edk2.git/blob - Tools/Java/Source/MigrationTools/org/tianocore/migration/Guid.java
3 Copyright (c) 2006, Intel Corporation
4 All rights reserved. This program and the accompanying materials
5 are licensed and made available under the terms and conditions of the BSD License
6 which accompanies this distribution. The full text of the license may be found at
7 http://opensource.org/licenses/bsd-license.php
9 THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
10 WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
13 package org
.tianocore
.migration
;
15 import java
.util
.regex
.*;
18 Guid (String r8
, String t
, String n
, String r9
, String gv
, String p
) {
26 Guid (String
[] linecontext
, String t
) {
27 r8name
= linecontext
[1];
29 name
= linecontext
[0];
30 r9name
= linecontext
[2];
31 guidvalue
= linecontext
[3];
32 pack
= linecontext
[4];
38 public String guidvalue
;
41 public static Pattern ptnguid
= Pattern
.compile("g\\w*Guid");
43 public static String
register(Matcher mtr
, ModuleInfo mi
, Database db
) {
48 if (MigrationTool
.db
.hasGuid(temp
)) { // only changed guids registered, because both changed and not changed guids are included in database
49 type
= MigrationTool
.db
.getGuidType(temp
);
50 if (type
.matches("Protocol")) {
51 mi
.protocols
.add(temp
);
52 } else if (type
.matches("Ppi")) {
54 } else if (type
.matches("Guid")) {