public enum ModuleType extends Enum<ModuleType>
Enum Constant and Description |
---|
CAR
The module is an Client Application archive.
|
EAR
The module is an EAR archive.
|
EJB
The module is an Enterprise Java Bean archive.
|
RAR
The module is an Connector archive.
|
WAR
The module is an Web Application archive.
|
Modifier and Type | Field and Description |
---|---|
(package private) static String |
CAR_STR
A
String representation of CAR 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. |
static int |
length
GlassFish JavaEE profile enumeration length.
|
(package private) static String |
RAR_STR
A
String representation of RAR value. |
private static Map<String,ModuleType> |
stringValuesMap
Stored
String values for backward String
conversion. |
(package private) static String |
WAR_STR
A
String representation of WAR value. |
Modifier and Type | Method and Description |
---|---|
String |
toString()
Convert module type name to
String . |
static ModuleType |
toValue(String stateStr)
Returns a
ModuleType with a value represented by the
specified String . |
static ModuleType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModuleType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModuleType EAR
public static final ModuleType EJB
public static final ModuleType CAR
public static final ModuleType RAR
public static final ModuleType WAR
public static final int length
static final String EAR_STR
String
representation of EAR value.static final String EJB_STR
String
representation of EJB value.static final String CAR_STR
String
representation of CAR value.static final String RAR_STR
String
representation of RAR value.static final String WAR_STR
String
representation of WAR value.private static final Map<String,ModuleType> stringValuesMap
String
values for backward String
conversion.public static ModuleType[] values()
for (ModuleType c : ModuleType.values()) System.out.println(c);
public static ModuleType 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 ModuleType toValue(String stateStr)
ModuleType
with a value represented by the
specified String
. The ModuleType
returned
represents existing value only if specified String
matches any String
returned by toString
method.
Otherwise null
value is returned.
stateStr
- Value containing ModuleType
toString
representation.ModuleType
value represented
by String
or null
if value
was not recognized.public String toString()
String
.
toString
in class Enum<ModuleType>
String
representation of the value of this object.Copyright © 2013. All Rights Reserved.