com.izforge.izpack.event
Class ActionBase

java.lang.Object
  extended by com.izforge.izpack.event.ActionBase
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
AntAction

public class ActionBase
extends java.lang.Object
implements java.io.Serializable

Base class for action classes like AntAction.

Author:
Klaus Bartz
See Also:
Serialized Form

Field Summary
static java.lang.String ACTION
           
static java.lang.String AFTERDELETION
           
static java.lang.String AFTERPACK
           
static java.lang.String AFTERPACKS
           
static java.lang.String ARCH
           
static java.lang.String ASKFALSE
           
static java.lang.String ASKTRUE
           
static java.lang.String BEFOREDELETION
           
static java.lang.String BEFOREPACK
           
static java.lang.String BEFOREPACKS
           
static java.lang.String BUILDFILE
           
static java.lang.String CASESENSITIVE
           
static java.lang.String COPY
           
static java.lang.String EXCLUDE
           
static java.lang.String EXCLUDES
           
static java.lang.String FALSE
           
static java.lang.String FAMILY
           
static java.lang.String FILESET
           
static java.lang.String INCLUDE
           
static java.lang.String INCLUDES
           
private static java.util.HashSet<java.lang.String> installOrders
           
static java.lang.String LOGFILE
           
static java.lang.String MAC
           
protected  java.lang.String messageID
           
static java.lang.String MESSAGEID
           
static java.lang.String MOVE
           
static java.lang.String NAME
           
static java.lang.String NO
           
static java.lang.String NOTHING
           
static java.lang.String ONDEST
           
protected  java.lang.String order
           
static java.lang.String ORDER
           
static java.lang.String OS
           
static java.lang.String OVERRIDE
           
static java.lang.String PACK
           
static java.lang.String PATH
           
static java.lang.String PROPERTY
           
static java.lang.String PROPERTYFILE
           
static java.lang.String QUIET
           
static java.lang.String REMOVE
           
static java.lang.String REWIND
           
private static long serialVersionUID
           
static java.lang.String SRCDIR
           
static java.lang.String TARGET
           
static java.lang.String TARGETDIR
           
static java.lang.String TOUCH
           
static java.lang.String TRUE
           
static java.lang.String UNINSTALL_ACTION
           
static java.lang.String UNINSTALL_ORDER
           
static java.lang.String UNINSTALL_TARGET
           
protected  java.lang.String uninstallOrder
           
private static java.util.HashSet<java.lang.String> uninstallOrders
           
static java.lang.String UNIX
           
static java.lang.String UPDATE
           
static java.lang.String VALUE
           
static java.lang.String VERBOSE
           
static java.lang.String VERSION
           
static java.lang.String WINDOWS
           
static java.lang.String YES
           
 
Constructor Summary
ActionBase()
          Default constructor
 
Method Summary
 java.lang.String getMessageID()
          Returns the defined message ID for this action.
 java.lang.String getOrder()
          Returns the order.
 java.lang.String getUninstallOrder()
          Returns the order for uninstallation.
 void setMessageID(java.lang.String string)
          Sets the message ID to the given string.
 void setOrder(java.lang.String order)
          Sets the order to the given string.
 void setUninstallOrder(java.lang.String order)
          Sets the order to the given string for uninstallation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

PACK

public static final java.lang.String PACK
See Also:
Constant Field Values

NAME

public static final java.lang.String NAME
See Also:
Constant Field Values

ORDER

public static final java.lang.String ORDER
See Also:
Constant Field Values

BEFOREPACK

public static final java.lang.String BEFOREPACK
See Also:
Constant Field Values

AFTERPACK

public static final java.lang.String AFTERPACK
See Also:
Constant Field Values

BEFOREPACKS

public static final java.lang.String BEFOREPACKS
See Also:
Constant Field Values

AFTERPACKS

public static final java.lang.String AFTERPACKS
See Also:
Constant Field Values

UNINSTALL_ORDER

public static final java.lang.String UNINSTALL_ORDER
See Also:
Constant Field Values

BEFOREDELETION

public static final java.lang.String BEFOREDELETION
See Also:
Constant Field Values

AFTERDELETION

public static final java.lang.String AFTERDELETION
See Also:
Constant Field Values

PROPERTY

public static final java.lang.String PROPERTY
See Also:
Constant Field Values

VALUE

public static final java.lang.String VALUE
See Also:
Constant Field Values

YES

public static final java.lang.String YES
See Also:
Constant Field Values

NO

public static final java.lang.String NO
See Also:
Constant Field Values

FALSE

public static final java.lang.String FALSE
See Also:
Constant Field Values

TRUE

public static final java.lang.String TRUE
See Also:
Constant Field Values

QUIET

public static final java.lang.String QUIET
See Also:
Constant Field Values

VERBOSE

public static final java.lang.String VERBOSE
See Also:
Constant Field Values

LOGFILE

public static final java.lang.String LOGFILE
See Also:
Constant Field Values

BUILDFILE

public static final java.lang.String BUILDFILE
See Also:
Constant Field Values

PROPERTYFILE

public static final java.lang.String PROPERTYFILE
See Also:
Constant Field Values

PATH

public static final java.lang.String PATH
See Also:
Constant Field Values

SRCDIR

public static final java.lang.String SRCDIR
See Also:
Constant Field Values

TARGETDIR

public static final java.lang.String TARGETDIR
See Also:
Constant Field Values

TARGET

public static final java.lang.String TARGET
See Also:
Constant Field Values

UNINSTALL_TARGET

public static final java.lang.String UNINSTALL_TARGET
See Also:
Constant Field Values

ACTION

public static final java.lang.String ACTION
See Also:
Constant Field Values

UNINSTALL_ACTION

public static final java.lang.String UNINSTALL_ACTION
See Also:
Constant Field Values

ONDEST

public static final java.lang.String ONDEST
See Also:
Constant Field Values

COPY

public static final java.lang.String COPY
See Also:
Constant Field Values

REMOVE

public static final java.lang.String REMOVE
See Also:
Constant Field Values

REWIND

public static final java.lang.String REWIND
See Also:
Constant Field Values

TOUCH

public static final java.lang.String TOUCH
See Also:
Constant Field Values

MOVE

public static final java.lang.String MOVE
See Also:
Constant Field Values

OVERRIDE

public static final java.lang.String OVERRIDE
See Also:
Constant Field Values

UPDATE

public static final java.lang.String UPDATE
See Also:
Constant Field Values

NOTHING

public static final java.lang.String NOTHING
See Also:
Constant Field Values

FILESET

public static final java.lang.String FILESET
See Also:
Constant Field Values

MESSAGEID

public static final java.lang.String MESSAGEID
See Also:
Constant Field Values

INCLUDE

public static final java.lang.String INCLUDE
See Also:
Constant Field Values

INCLUDES

public static final java.lang.String INCLUDES
See Also:
Constant Field Values

EXCLUDE

public static final java.lang.String EXCLUDE
See Also:
Constant Field Values

EXCLUDES

public static final java.lang.String EXCLUDES
See Also:
Constant Field Values

OS

public static final java.lang.String OS
See Also:
Constant Field Values

FAMILY

public static final java.lang.String FAMILY
See Also:
Constant Field Values

VERSION

public static final java.lang.String VERSION
See Also:
Constant Field Values

ARCH

public static final java.lang.String ARCH
See Also:
Constant Field Values

CASESENSITIVE

public static final java.lang.String CASESENSITIVE
See Also:
Constant Field Values

UNIX

public static final java.lang.String UNIX
See Also:
Constant Field Values

WINDOWS

public static final java.lang.String WINDOWS
See Also:
Constant Field Values

MAC

public static final java.lang.String MAC
See Also:
Constant Field Values

ASKTRUE

public static final java.lang.String ASKTRUE
See Also:
Constant Field Values

ASKFALSE

public static final java.lang.String ASKFALSE
See Also:
Constant Field Values

installOrders

private static final java.util.HashSet<java.lang.String> installOrders

uninstallOrders

private static final java.util.HashSet<java.lang.String> uninstallOrders

uninstallOrder

protected java.lang.String uninstallOrder

order

protected java.lang.String order

messageID

protected java.lang.String messageID
Constructor Detail

ActionBase

public ActionBase()
Default constructor

Method Detail

getOrder

public java.lang.String getOrder()
Returns the order.

Returns:
the order

setOrder

public void setOrder(java.lang.String order)
              throws java.lang.Exception
Sets the order to the given string. Valid values are "beforepacks", "beforepack", "afterpack" and "afterpacks".

Parameters:
order - order to be set
Throws:
java.lang.Exception

getUninstallOrder

public java.lang.String getUninstallOrder()
Returns the order for uninstallation.

Returns:
the order for uninstallation

setUninstallOrder

public void setUninstallOrder(java.lang.String order)
                       throws java.lang.Exception
Sets the order to the given string for uninstallation. Valid values are "beforedeletion" and "afterdeletion".

Parameters:
order - order to be set
Throws:
java.lang.Exception

getMessageID

public java.lang.String getMessageID()
Returns the defined message ID for this action.

Returns:
the defined message ID

setMessageID

public void setMessageID(java.lang.String string)
Sets the message ID to the given string.

Parameters:
string - string to be used as message ID