FileDocCategorySizeDatePackage
StateType.javaAPI DocGlassfish v2 API4425Fri May 04 22:35:48 BST 2007javax.enterprise.deploy.shared

StateType

public class StateType extends Object
Class StateTypes defines enumeration values for the DeploymentStatus object.
author
rsearls

Fields Summary
private int
value
public static final StateType
RUNNING
The action operation is running normally.
public static final StateType
COMPLETED
The action operation has completed normally.
public static final StateType
FAILED
The action operation has failed.
public static final StateType
RELEASED
The DeploymentManager is running in discommected mode.
private static final String[]
stringTable
private static final StateType[]
enumValueTable
Constructors Summary
protected StateType(int value)
Construct a new enumeration value with the given integer value.

param
value Integer value.

    
                         
       
       this.value = value;
    
Methods Summary
protected javax.enterprise.deploy.shared.StateType[]getEnumValueTable()
Returns the enumeration value table for class StateType

		return enumValueTable;
	
protected intgetOffset()
Returns the lowest integer value used by this enumeration value's enumeration class.

The default implementation returns 0.

return
the offset of the lowest enumeration value.

   return 0;
    
public static javax.enterprise.deploy.shared.StateTypegetStateType(int value)
Return an object of the specified value.

param
value a designator for the object.

   return enumValueTable[value];
    
protected java.lang.String[]getStringTable()
Returns the string table for class StateType

		return stringTable;
	
public intgetValue()
Returns this enumeration value's integer value.

return
the value

   return value;
    
public java.lang.StringtoString()
Return the string name of this StateType or the integer value if outside the bounds of the table

        String[] strTable = getStringTable();
        int index = value - getOffset();
        if (strTable != null && index >= 0 && index < strTable.length)
            return strTable[index];
        else
            return Integer.toString (value);