org.jostraca.setup
Class SetupActionSupport

java.lang.Object
  extended byorg.jostraca.setup.SetupActionSupport
All Implemented Interfaces:
SetupAction
Direct Known Subclasses:
SetupActionComplete, SetupActionFindHome, SetupActionFindOS, SetupActionFindPath, SetupActionGenerateScript, SetupActionSaveScript, SetupActionSetPermissions

public abstract class SetupActionSupport
extends java.lang.Object
implements SetupAction

Description:
Support class for SetupActions.


Field Summary
protected  java.util.Hashtable iConfig
           
protected  java.lang.String iDonePhrase
           
protected  SetupManager iSetupManager
           
 
Fields inherited from interface org.jostraca.setup.SetupAction
CONF_Arguments, CONF_ExecPath, CONF_HomeFolder, CONF_IsWindows9x, CONF_OSType, CONF_ScriptPath, CONF_ScriptSource, CONF_SetupActions, CONF_UsingCurrentFolder, EX_FIND_PATH_FAILURE, EX_FIND_SCRIPT_FAILURE, EX_LOAD_ACTION_CLASSES, EX_NOT_AT_HOME_NO_FILE, EX_NOT_AT_HOME_SOME_EXCEPTION, EX_PATH_EMPTY, EX_SAVE_SCRIPT_FAILURE, EX_SET_PERMS_EXEC_FAILURE, EX_SET_PERMS_FAILURE, EX_UNKNOWN, OS_Unix, OS_Windows, PATH_dot, VALUE_no, VALUE_yes
 
Constructor Summary
SetupActionSupport()
           
 
Method Summary
protected  void done()
           
protected  void doOperatingSystem()
           
 void doSetup(java.util.Hashtable pConfig, SetupManager pSetupManager)
           
abstract  void doSetupImpl()
           
 void doUnix()
           
 void doWindows()
           
protected  java.lang.String get(java.lang.String pName)
           
protected  java.lang.String[] getArray(java.lang.String pName)
           
 java.lang.String getDonePhrase()
           
abstract  java.lang.String getName()
           
protected  java.lang.String getScriptFileDisplayName()
           
protected  java.lang.String getScriptFileName()
           
protected  boolean isYes(java.lang.String pName)
           
protected  void put(java.lang.String pName, java.lang.String pValue)
           
abstract  void undoSetup()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iDonePhrase

protected java.lang.String iDonePhrase

iConfig

protected java.util.Hashtable iConfig

iSetupManager

protected SetupManager iSetupManager
Constructor Detail

SetupActionSupport

public SetupActionSupport()
Method Detail

doSetupImpl

public abstract void doSetupImpl()
                          throws SetupException
Throws:
SetupException

undoSetup

public abstract void undoSetup()
                        throws SetupException
Specified by:
undoSetup in interface SetupAction
Throws:
SetupException

getName

public abstract java.lang.String getName()
Specified by:
getName in interface SetupAction

doWindows

public void doWindows()
               throws SetupException
Throws:
SetupException

doUnix

public void doUnix()
            throws SetupException
Throws:
SetupException

doSetup

public void doSetup(java.util.Hashtable pConfig,
                    SetupManager pSetupManager)
             throws SetupException
Specified by:
doSetup in interface SetupAction
Throws:
SetupException

getDonePhrase

public java.lang.String getDonePhrase()
Specified by:
getDonePhrase in interface SetupAction

put

protected void put(java.lang.String pName,
                   java.lang.String pValue)

get

protected java.lang.String get(java.lang.String pName)

isYes

protected boolean isYes(java.lang.String pName)

getArray

protected java.lang.String[] getArray(java.lang.String pName)

done

protected void done()

doOperatingSystem

protected void doOperatingSystem()
                          throws SetupException
Throws:
SetupException

getScriptFileName

protected java.lang.String getScriptFileName()

getScriptFileDisplayName

protected java.lang.String getScriptFileDisplayName()


Copyright © 2000-2002 Richard Rodger