com.partnersoft.update.model
Class UpdateCommand

java.lang.Object
  extended by com.partnersoft.update.model.UpdateCommand

public class UpdateCommand
extends java.lang.Object

A specific type of update command representing the kind of update requested.

This is a typesafe enum but must compile under 1.4 so we don't use the Java 1.5 enum construct.

Copyright 2010 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
static UpdateCommand EXIT
           
static UpdateCommand INSTALL
           
static UpdateCommand PROMPT
           
static UpdateCommand REINSTALL
           
static UpdateCommand RESTART
           
static UpdateCommand STOP
           
static UpdateCommand UPDATE
           
 
Method Summary
static UpdateCommand forName(java.lang.String name)
          Returns the instance matching the given name.
 java.lang.String getName()
          Name of the volume.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INSTALL

public static final UpdateCommand INSTALL

UPDATE

public static final UpdateCommand UPDATE

REINSTALL

public static final UpdateCommand REINSTALL

PROMPT

public static final UpdateCommand PROMPT

RESTART

public static final UpdateCommand RESTART

STOP

public static final UpdateCommand STOP

EXIT

public static final UpdateCommand EXIT
Method Detail

forName

public static UpdateCommand forName(java.lang.String name)
Returns the instance matching the given name. Returns null if no match is available.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Name of the volume.

Returns:
name of volume