1 17 package org.apache.geronimo.system.configuration.condition; 18 19 24 public class OsVariable 25 { 26 public String getArch() { 27 return SystemUtils.OS_ARCH; 28 } 29 30 public String getName() { 31 return SystemUtils.OS_NAME; 32 } 33 34 public String getVersion() { 35 return SystemUtils.OS_VERSION; 36 } 37 38 public boolean getIsAIX() { 39 return SystemUtils.IS_OS_AIX; 40 } 41 42 public boolean getIsHPUX() { 43 return SystemUtils.IS_OS_HP_UX; 44 } 45 46 public boolean getIsIrix() { 47 return SystemUtils.IS_OS_IRIX; 48 } 49 50 public boolean getIsLinux() { 51 return SystemUtils.IS_OS_LINUX; 52 } 53 54 public boolean getIsMac() { 55 return SystemUtils.IS_OS_MAC; 56 } 57 58 public boolean getIsMacOSX() { 59 return SystemUtils.IS_OS_MAC_OSX; 60 } 61 62 public boolean getIsOS2() { 63 return SystemUtils.IS_OS_OS2; 64 } 65 66 public boolean getIsSolaris() { 67 return SystemUtils.IS_OS_SOLARIS; 68 } 69 70 public boolean getIsSunOS() { 71 return SystemUtils.IS_OS_SUN_OS; 72 } 73 74 public boolean getIsUnix() { 75 return SystemUtils.IS_OS_UNIX; 76 } 77 78 public boolean getIsWindows() { 79 return SystemUtils.IS_OS_WINDOWS; 80 } 81 82 public boolean getIsWindows2000() { 83 return SystemUtils.IS_OS_WINDOWS_2000; 84 } 85 86 public boolean getIsWindows95() { 87 return SystemUtils.IS_OS_WINDOWS_95; 88 } 89 90 public boolean getIsWindows98() { 91 return SystemUtils.IS_OS_WINDOWS_98; 92 } 93 94 public boolean getIsWindowsME() { 95 return SystemUtils.IS_OS_WINDOWS_ME; 96 } 97 98 public boolean getIsWindowsNT() { 99 return SystemUtils.IS_OS_WINDOWS_NT; 100 } 101 102 public boolean getIsWindowsXP() { 103 return SystemUtils.IS_OS_WINDOWS_XP; 104 } 105 } 106 | Popular Tags |