MsaOwner usable
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / MsaOwner.java
index 6483de5..65873a3 100644 (file)
@@ -58,11 +58,9 @@ public class MsaOwner {
         }\r
         \r
         LibraryClassDocument.LibraryClass classname;\r
-        List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();\r
         classname = libclassdefs.addNewLibraryClass();\r
         classname.setKeyword(name);\r
-        arch.add(usage);\r
-        classname.setSupArchList(arch);\r
+        classname.setUsage(usage);\r
         return true;\r
     }\r
     \r
@@ -80,11 +78,9 @@ public class MsaOwner {
         }\r
         \r
         GuidsDocument.Guids.GuidCNames guid;\r
-        List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();\r
         guid = guids.addNewGuidCNames();\r
         guid.setGuidCName(guidname);\r
-        arch.add(usage);\r
-        guid.setSupArchList(arch);\r
+        guid.setUsage(usage);\r
         return true;\r
     }\r
     \r
@@ -103,11 +99,9 @@ public class MsaOwner {
         }\r
         \r
         PPIsDocument.PPIs.Ppi ppi;\r
-        List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();\r
         ppi = ppis.addNewPpi();\r
         ppi.setPpiCName(ppiname);\r
-        arch.add(usage);\r
-        ppi.setSupArchList(arch);\r
+        ppi.setUsage(usage);\r
         return true;\r
     }\r
     \r
@@ -140,7 +134,7 @@ public class MsaOwner {
         if (protocols == null) {\r
             protocols = msa.addNewProtocols();\r
         }\r
-        \r
+\r
         Iterator<ProtocolsDocument.Protocols.Protocol> proit = protocols.getProtocolList().iterator();\r
         while (proit.hasNext()) {\r
             if (proit.next().getProtocolCName() == proname) {\r
@@ -148,13 +142,11 @@ public class MsaOwner {
                 return false;\r
             }\r
         }\r
-        \r
+\r
         ProtocolsDocument.Protocols.Protocol protocol;\r
-        List<UsageTypes.Enum> arch = new ArrayList<UsageTypes.Enum>();\r
         protocol = protocols.addNewProtocol();\r
         protocol.setProtocolCName(proname);\r
-        arch.add(usage);\r
-        protocol.setSupArchList(arch);\r
+        protocol.setUsage(usage);\r
         return true;\r
     }\r
     \r