001 /*
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements. See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership. The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License. You may obtain a copy of the License at
009 *
010 * http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied. See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019
020 package org.apache.geronimo.system.configuration.condition;
021
022 /**
023 * Provides access to operating system details for use in condition expressions.
024 *
025 * @version $Rev: 454011 $ $Date: 2006-10-07 13:28:45 -0700 (Sat, 07 Oct 2006) $
026 */
027 public class OsVariable
028 {
029 public String getArch() {
030 return SystemUtils.OS_ARCH;
031 }
032
033 public String getName() {
034 return SystemUtils.OS_NAME;
035 }
036
037 public String getVersion() {
038 return SystemUtils.OS_VERSION;
039 }
040
041 public boolean getIsAIX() {
042 return SystemUtils.IS_OS_AIX;
043 }
044
045 public boolean getIsHPUX() {
046 return SystemUtils.IS_OS_HP_UX;
047 }
048
049 public boolean getIsIrix() {
050 return SystemUtils.IS_OS_IRIX;
051 }
052
053 public boolean getIsLinux() {
054 return SystemUtils.IS_OS_LINUX;
055 }
056
057 public boolean getIsMac() {
058 return SystemUtils.IS_OS_MAC;
059 }
060
061 public boolean getIsMacOSX() {
062 return SystemUtils.IS_OS_MAC_OSX;
063 }
064
065 public boolean getIsOS2() {
066 return SystemUtils.IS_OS_OS2;
067 }
068
069 public boolean getIsSolaris() {
070 return SystemUtils.IS_OS_SOLARIS;
071 }
072
073 public boolean getIsSunOS() {
074 return SystemUtils.IS_OS_SUN_OS;
075 }
076
077 public boolean getIsUnix() {
078 return SystemUtils.IS_OS_UNIX;
079 }
080
081 public boolean getIsWindows() {
082 return SystemUtils.IS_OS_WINDOWS;
083 }
084
085 public boolean getIsWindows2000() {
086 return SystemUtils.IS_OS_WINDOWS_2000;
087 }
088
089 public boolean getIsWindows95() {
090 return SystemUtils.IS_OS_WINDOWS_95;
091 }
092
093 public boolean getIsWindows98() {
094 return SystemUtils.IS_OS_WINDOWS_98;
095 }
096
097 public boolean getIsWindowsME() {
098 return SystemUtils.IS_OS_WINDOWS_ME;
099 }
100
101 public boolean getIsWindowsNT() {
102 return SystemUtils.IS_OS_WINDOWS_NT;
103 }
104
105 public boolean getIsWindowsXP() {
106 return SystemUtils.IS_OS_WINDOWS_XP;
107 }
108 }