info.aduna.platform.support
Class WindowsPlatform

java.lang.Object
  extended by info.aduna.platform.PlatformBase
      extended by info.aduna.platform.support.WindowsPlatform
All Implemented Interfaces:
Platform

public class WindowsPlatform
extends PlatformBase

Platform implementation for all Windows' platforms.


Field Summary
static String ADUNA_APPLICATION_DATA
          name of the app data subdirectory containing all Aduna files *
static String APPLICATION_DATA
          name of the directory containing application data
 
Fields inherited from class info.aduna.platform.PlatformBase
colonReplacement, logger, separatorReplacement, whitespaceReplacement
 
Fields inherited from interface info.aduna.platform.Platform
APPDATA_BASEDIR_PROPERTY, OLD_DATADIR_PROPERTY
 
Constructor Summary
WindowsPlatform()
           
 
Method Summary
 boolean dataDirPreserveCase()
           
 boolean dataDirReplaceColon()
           
 boolean dataDirReplaceWhitespace()
           
 String getCommandShell()
          Returns appropriate command shell for the current windows shell.
 String getName()
          Returns the name of this windows platform.
 File getOSApplicationDataDir()
          Returns an application data directory in the "Application Data" userdir of Windows.
 File getUserHome()
          Returns the directory for the current user.
 boolean isWin2000()
          Check whether this is an Windows 2000 environment.
 boolean isWin2003()
          Check whether this is an Windows 2003 environment.
 boolean isWin9x()
          Check whether this is windows 9x, or windows NT and higher.
 boolean isWinNT()
          Check whether this is an Windows NT environment.
 boolean isWinVista()
          Check whether this is an Windows Vista environment.
 boolean isWinXP()
          Check whether this is an Windows NT environment.
 boolean warnsWhenOpeningExecutable()
          Returns true when the platform is not a Windows 9x platform.
 
Methods inherited from class info.aduna.platform.PlatformBase
getApplicationDataDir, getApplicationDataDir, getOSApplicationDataDir, getRelativeApplicationDataDir, getRelativeApplicationDataDir
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

APPLICATION_DATA

public static final String APPLICATION_DATA
name of the directory containing application data

See Also:
Constant Field Values

ADUNA_APPLICATION_DATA

public static final String ADUNA_APPLICATION_DATA
name of the app data subdirectory containing all Aduna files *

See Also:
Constant Field Values
Constructor Detail

WindowsPlatform

public WindowsPlatform()
Method Detail

getName

public String getName()
Returns the name of this windows platform.


getUserHome

public File getUserHome()
Description copied from interface: Platform
Returns the directory for the current user.

Specified by:
getUserHome in interface Platform
Overrides:
getUserHome in class PlatformBase
Returns:
the current user home directory

getOSApplicationDataDir

public File getOSApplicationDataDir()
Returns an application data directory in the "Application Data" userdir of Windows.


warnsWhenOpeningExecutable

public boolean warnsWhenOpeningExecutable()
Returns true when the platform is not a Windows 9x platform.


isWin9x

public boolean isWin9x()
Check whether this is windows 9x, or windows NT and higher.


isWinNT

public boolean isWinNT()
Check whether this is an Windows NT environment.


isWin2000

public boolean isWin2000()
Check whether this is an Windows 2000 environment.


isWinXP

public boolean isWinXP()
Check whether this is an Windows NT environment.


isWin2003

public boolean isWin2003()
Check whether this is an Windows 2003 environment.


isWinVista

public boolean isWinVista()
Check whether this is an Windows Vista environment.


getCommandShell

public String getCommandShell()
Returns appropriate command shell for the current windows shell.


dataDirPreserveCase

public boolean dataDirPreserveCase()

dataDirReplaceWhitespace

public boolean dataDirReplaceWhitespace()

dataDirReplaceColon

public boolean dataDirReplaceColon()


Copyright © 2001-2012 Aduna. All Rights Reserved.