public enum GlassFishContainer extends Enum<GlassFishContainer> implements Comparator<GlassFishContainer>
Enum Constant and Description |
---|
APPCLIENT
Application client.
|
CONNECTOR
Connector.
|
EAR
EAR application.
|
EJB
EJB application.
|
JRUBY
jRuby application.
|
UNKNOWN
Unknown application.
|
WEB
Web application.
|
Modifier and Type | Field and Description |
---|---|
(package private) static String |
APPCLIENT_STR
A
String representation of APPCLIENT value. |
(package private) static String |
CONNECTOR_STR
A
String representation of CONNECTOR value. |
(package private) static String |
EAR_STR
A
String representation of EAR value. |
(package private) static String |
EJB_STR
A
String representation of EJB value. |
(package private) static String |
JRUBY_STR
A
String representation of JRUBY value. |
static char |
SEPARATOR
Version elements separator character.
|
private static Map<String,GlassFishContainer> |
stringValuesMap
Stored
String values for backward String
conversion. |
(package private) static String |
UNKNOWN_STR
A
String representation of UNKNOWN value. |
(package private) static String |
WEB_STR
A
String representation of WEB value. |
Modifier and Type | Method and Description |
---|---|
int |
compare(GlassFishContainer container1,
GlassFishContainer container2)
Compares its two arguments for order.
|
String |
toString()
Convert
GlassFishContainer value to String . |
static GlassFishContainer |
toValue(String containerStr)
Returns a
GlassFishContainer with a value represented by
the specified String . |
static GlassFishContainer |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static GlassFishContainer[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
equals
public static final GlassFishContainer EAR
public static final GlassFishContainer JRUBY
public static final GlassFishContainer WEB
public static final GlassFishContainer EJB
public static final GlassFishContainer APPCLIENT
public static final GlassFishContainer CONNECTOR
public static final GlassFishContainer UNKNOWN
static final String EAR_STR
String
representation of EAR value.static final String JRUBY_STR
String
representation of JRUBY value.static final String WEB_STR
String
representation of WEB value.static final String EJB_STR
String
representation of EJB value.static final String APPCLIENT_STR
String
representation of APPCLIENT value.static final String CONNECTOR_STR
String
representation of CONNECTOR value.static final String UNKNOWN_STR
String
representation of UNKNOWN value.public static final char SEPARATOR
private static final Map<String,GlassFishContainer> stringValuesMap
String
values for backward String
conversion.public static GlassFishContainer[] values()
for (GlassFishContainer c : GlassFishContainer.values()) System.out.println(c);
public static GlassFishContainer valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is nullpublic static GlassFishContainer toValue(String containerStr)
GlassFishContainer
with a value represented by
the specified String
. The GlassFishContainer
returned represents existing value only if specified String
matches any String
returned by toString
method.
Otherwise null
value is returned.
containerStr
- Value containing container String
representation.GlassFishContainer
value represented
by String
or null
if value was
not recognized.public String toString()
GlassFishContainer
value to String
.
toString
in class Enum<GlassFishContainer>
String
representation of the value of this object.public int compare(GlassFishContainer container1, GlassFishContainer container2)
compare
in interface Comparator<GlassFishContainer>
container1
- The first object to be compared.container2
- The second object to be compared.Copyright © 2013. All Rights Reserved.