KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > wsh > ClassFactory


1 // GENERATED. DO NOT MODIFY
2
package wsh;
3
4 import com4j.*;
5
6 /**
7  * Defines methods to create COM objects
8  */

9 public abstract class ClassFactory {
10     private ClassFactory() {} // instanciation is not allowed
11

12
13     public static IFileSystem3 createFileSystemObject() {
14         return COM4J.createInstance( IFileSystem3.class, "{0D43FE01-F093-11CF-8940-00A0C9054228}" );
15     }
16
17     /**
18      * Shell Object
19      */

20     public static IWshShell3 createWshShell() {
21         return COM4J.createInstance( IWshShell3.class, "{72C24DD5-D70A-438B-8A42-98424B88AFB8}" );
22     }
23
24     /**
25      * Shell Object
26      */

27     public static IWshShell3 createIWshShell_Class() {
28         return COM4J.createInstance( IWshShell3.class, "{F935DC22-1CF0-11D0-ADB9-00C04FD58A0B}" );
29     }
30
31     /**
32      * Shortcut Object
33      */

34     public static IWshShortcut createWshShortcut() {
35         return COM4J.createInstance( IWshShortcut.class, "{A548B8E4-51D5-4661-8824-DAA1D893DFB2}" );
36     }
37
38     /**
39      * Shortcut Object
40      */

41     public static IWshShortcut createIWshShortcut_Class() {
42         return COM4J.createInstance( IWshShortcut.class, "{F935DC24-1CF0-11D0-ADB9-00C04FD58A0B}" );
43     }
44
45     /**
46      * Network Object
47      */

48     public static IWshNetwork2 createWshNetwork() {
49         return COM4J.createInstance( IWshNetwork2.class, "{093FF999-1EA0-4079-9525-9614C3504B74}" );
50     }
51
52     /**
53      * Network Object
54      */

55     public static IWshNetwork2 createIWshNetwork_Class() {
56         return COM4J.createInstance( IWshNetwork2.class, "{F935DC26-1CF0-11D0-ADB9-00C04FD58A0B}" );
57     }
58
59     /**
60      * Generic Collection Object
61      */

62     public static IWshCollection createWshCollection() {
63         return COM4J.createInstance( IWshCollection.class, "{387DAFF4-DA03-44D2-B0D1-80C927C905AC}" );
64     }
65
66     /**
67      * Generic Collection Object
68      */

69     public static IWshCollection createIWshCollection_Class() {
70         return COM4J.createInstance( IWshCollection.class, "{F935DC28-1CF0-11D0-ADB9-00C04FD58A0B}" );
71     }
72
73     /**
74      * Environment Variables Collection Object
75      */

76     public static IWshEnvironment createWshEnvironment() {
77         return COM4J.createInstance( IWshEnvironment.class, "{F48229AF-E28C-42B5-BB92-E114E62BDD54}" );
78     }
79
80     /**
81      * Environment Variables Collection Object
82      */

83     public static IWshEnvironment createIWshEnvironment_Class() {
84         return COM4J.createInstance( IWshEnvironment.class, "{F935DC2A-1CF0-11D0-ADB9-00C04FD58A0B}" );
85     }
86
87     /**
88      * URLShortcut Object
89      */

90     public static IWshURLShortcut createWshURLShortcut() {
91         return COM4J.createInstance( IWshURLShortcut.class, "{50E13488-6F1E-4450-96B0-873755403955}" );
92     }
93
94     /**
95      * URLShortcut Object
96      */

97     public static IWshURLShortcut createIWshURLShortcut_Class() {
98         return COM4J.createInstance( IWshURLShortcut.class, "{F935DC2C-1CF0-11D0-ADB9-00C04FD58A0B}" );
99     }
100 }
101
Popular Tags