com.atlassian.plugin
Enum PluginState

java.lang.Object
  extended by java.lang.Enum<PluginState>
      extended by com.atlassian.plugin.PluginState
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<PluginState>

public enum PluginState
extends java.lang.Enum<PluginState>

Represents the state of the plugin

Since:
2.2.0

Enum Constant Summary
DISABLED
          The plugin has been disabled
DISABLING
          The plugin is in the process of being disabled
ENABLED
          The plugin has been enabled
ENABLING
          The plugin is in the process of being enabled
INSTALLED
          The plugin has been installed into the plugin system
UNINSTALLED
          The plugin has been uninstalled and should be unavailable
 
Method Summary
static PluginState valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PluginState[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INSTALLED

public static final PluginState INSTALLED
The plugin has been installed into the plugin system


ENABLING

public static final PluginState ENABLING
The plugin is in the process of being enabled


ENABLED

public static final PluginState ENABLED
The plugin has been enabled


DISABLING

public static final PluginState DISABLING
The plugin is in the process of being disabled

Since:
2.8.0

DISABLED

public static final PluginState DISABLED
The plugin has been disabled


UNINSTALLED

public static final PluginState UNINSTALLED
The plugin has been uninstalled and should be unavailable

Method Detail

values

public static PluginState[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (PluginState c : PluginState.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static PluginState valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null


Copyright © 2013 Atlassian. All Rights Reserved.