KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > osgi > service > environment > Constants


1 /*******************************************************************************
2  * Copyright (c) 2003, 2005 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  *******************************************************************************/

11 package org.eclipse.osgi.service.environment;
12
13 /**
14  * @since 3.0
15  */

16 public interface Constants {
17     //TODO These constants need to be aligned with the OSGi ones. See page 64-588 of the spec
18

19     /**
20      * Constant string (value "win32") indicating the platform is running on a
21      * Window 32-bit operating system (e.g., Windows 98, NT, 2000).
22      */

23     public static final String JavaDoc OS_WIN32 = "win32";//$NON-NLS-1$
24

25     /**
26      * Constant string (value "linux") indicating the platform is running on a
27      * Linux-based operating system.
28      */

29     public static final String JavaDoc OS_LINUX = "linux";//$NON-NLS-1$
30

31     /**
32      * Constant string (value "aix") indicating the platform is running on an
33      * AIX-based operating system.
34      */

35     public static final String JavaDoc OS_AIX = "aix";//$NON-NLS-1$
36

37     /**
38      * Constant string (value "solaris") indicating the platform is running on a
39      * Solaris-based operating system.
40      */

41     public static final String JavaDoc OS_SOLARIS = "solaris";//$NON-NLS-1$
42

43     /**
44      * Constant string (value "hpux") indicating the platform is running on an
45      * HP/UX-based operating system.
46      */

47     public static final String JavaDoc OS_HPUX = "hpux";//$NON-NLS-1$
48

49     /**
50      * Constant string (value "qnx") indicating the platform is running on a
51      * QNX-based operating system.
52      */

53     public static final String JavaDoc OS_QNX = "qnx";//$NON-NLS-1$
54

55     /**
56      * Constant string (value "macosx") indicating the platform is running on a
57      * Mac OS X operating system.
58      */

59     public static final String JavaDoc OS_MACOSX = "macosx";//$NON-NLS-1$
60

61     /**
62      * Constant string (value "unknown") indicating the platform is running on a
63      * machine running an unknown operating system.
64      */

65     public static final String JavaDoc OS_UNKNOWN = "unknown";//$NON-NLS-1$
66

67     /**
68      * Constant string (value "x86") indicating the platform is running on an
69      * x86-based architecture.
70      */

71     public static final String JavaDoc ARCH_X86 = "x86";//$NON-NLS-1$
72

73     /**
74      * Constant string (value "PA_RISC") indicating the platform is running on an
75      * PA_RISC-based architecture.
76      */

77     public static final String JavaDoc ARCH_PA_RISC = "PA_RISC";//$NON-NLS-1$
78

79     /**
80      * Constant string (value "ppc") indicating the platform is running on an
81      * PowerPC-based architecture.
82      */

83     public static final String JavaDoc ARCH_PPC = "ppc";//$NON-NLS-1$
84

85     /**
86      * Constant string (value "sparc") indicating the platform is running on an
87      * Sparc-based architecture.
88      */

89     public static final String JavaDoc ARCH_SPARC = "sparc";//$NON-NLS-1$
90

91     /**
92      * Constant string (value "x86_64") indicating the platform is running on an
93      * x86 64bit-based architecture.
94      *
95      * @since 3.1
96      */

97     public static final String JavaDoc ARCH_X86_64 = "x86_64";//$NON-NLS-1$
98

99     /**
100      * Constant string (value "amd64") indicating the platform is running on an
101      * AMD64-based architecture.
102      *
103      * @deprecated use <code>ARCH_X86_64</code> instead. Note the values
104      * has been changed to be the value of the <code>ARCH_X86_64</code> constant.
105      */

106     public static final String JavaDoc ARCH_AMD64 = ARCH_X86_64;
107
108     /**
109      * Constant string (value "ia64") indicating the platform is running on an
110      * IA64-based architecture.
111      */

112     public static final String JavaDoc ARCH_IA64 = "ia64"; //$NON-NLS-1$
113

114     /**
115      * Constant string (value "ia64_32") indicating the platform is running on an
116      * IA64 32bit-based architecture.
117      *
118      * @since 3.1
119      */

120     public static final String JavaDoc ARCH_IA64_32 = "ia64_32";//$NON-NLS-1$
121

122     /**
123      * Constant string (value "win32") indicating the platform is running on a
124      * machine using the Windows windowing system.
125      */

126     public static final String JavaDoc WS_WIN32 = "win32";//$NON-NLS-1$
127

128     /**
129      * Constant string (value "wpf") indicating the platform is running on a
130      * machine using the Windows Presentation Foundation sytstem.
131      */

132     public static final String JavaDoc WS_WPF = "wpf"; //$NON-NLS-1$
133

134     /**
135      * Constant string (value "motif") indicating the platform is running on a
136      * machine using the Motif windowing system.
137      */

138     public static final String JavaDoc WS_MOTIF = "motif";//$NON-NLS-1$
139

140     /**
141      * Constant string (value "gtk") indicating the platform is running on a
142      * machine using the GTK windowing system.
143      */

144     public static final String JavaDoc WS_GTK = "gtk";//$NON-NLS-1$
145

146     /**
147      * Constant string (value "photon") indicating the platform is running on a
148      * machine using the Photon windowing system.
149      */

150     public static final String JavaDoc WS_PHOTON = "photon";//$NON-NLS-1$
151

152     /**
153      * Constant string (value "carbon") indicating the platform is running on a
154      * machine using the Carbon windowing system (Mac OS X).
155      */

156     public static final String JavaDoc WS_CARBON = "carbon";//$NON-NLS-1$
157

158     /**
159      * Constant string (value "unknown") indicating the platform is running on a
160      * machine running an unknown windowing system.
161      */

162     public static final String JavaDoc WS_UNKNOWN = "unknown";//$NON-NLS-1$
163
}
164
Popular Tags