public enum Sandbox extends java.lang.Enum<Sandbox>
For our purposes, these have names, descriptions, and color codes so that e.g. GUIs and reports can be clearly labelled as coming from a sandbox.
Copyright 2012 Partner Software, Inc.
| Enum Constant and Description |
|---|
ACCEPTANCE |
BETA |
DEMO |
DEVELOPMENT |
PRODUCTION |
PROTOTYPE |
TRAINING |
TROUBLESHOOTING |
| Modifier and Type | Method and Description |
|---|---|
static Sandbox |
forName(java.lang.String name) |
int |
getBackgroundColorRgb() |
java.lang.String |
getDescription() |
int |
getForegroundColorRgb() |
int |
getId()
Numeric ID for this sandbox.
|
java.lang.String |
getName() |
static java.util.List<Sandbox> |
listSandboxes() |
static java.util.List<java.lang.String> |
listSandboxNames() |
java.lang.String |
toString() |
int |
transformPortNumber(int portNumber)
For sandboxes other than production, modifies the portNumber in
such a way that it will not conflict with any other sandbox (including production).
|
static Sandbox |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sandbox[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sandbox PRODUCTION
public static final Sandbox TRAINING
public static final Sandbox DEMO
public static final Sandbox ACCEPTANCE
public static final Sandbox BETA
public static final Sandbox DEVELOPMENT
public static final Sandbox PROTOTYPE
public static final Sandbox TROUBLESHOOTING
public static Sandbox[] values()
for (Sandbox c : Sandbox.values()) System.out.println(c);
public static Sandbox valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static Sandbox forName(java.lang.String name)
public static java.util.List<Sandbox> listSandboxes()
public static java.util.List<java.lang.String> listSandboxNames()
public java.lang.String toString()
toString in class java.lang.Enum<Sandbox>public java.lang.String getName()
public int getId()
public java.lang.String getDescription()
public int getBackgroundColorRgb()
public int getForegroundColorRgb()
public int transformPortNumber(int portNumber)
portNumber - original port number