public enum JavaEEProfile extends Enum<JavaEEProfile>
Modifier and Type | Class and Description |
---|---|
static class |
JavaEEProfile.Type
JavaEE profile type.
|
static class |
JavaEEProfile.Version
JavaEE version.
|
Enum Constant and Description |
---|
v1_2
JavaEE 1.2.
|
v1_3
JavaEE 1.3.
|
v1_4
JavaEE 1.4.
|
v1_5
JavaEE 1.5.
|
v1_6
JavaEE 1.6 full profile.
|
v1_6_web
JavaEE 1.6 web profile.
|
v1_7
JavaEE 1.7 full profile.
|
v1_7_web
JavaEE 1.7 web profile.
|
Modifier and Type | Field and Description |
---|---|
static int |
length
GlassFish JavaEE profile enumeration length.
|
private String |
name
Name of JavaEE profile value.
|
private static Map<String,JavaEEProfile> |
stringValuesMap
Stored
String values for backward String
conversion. |
private JavaEEProfile.Type |
type
JavaEE profile type.
|
static char |
TYPE_SEPARATOR
JavaEE profile type element separator character.
|
private JavaEEProfile.Version |
version
JavaEE profile version.
|
Modifier and Type | Method and Description |
---|---|
private static String[] |
createNames(JavaEEProfile profile)
Create JavaEE profile names to be recognized.
|
JavaEEProfile.Type |
getType()
Get profile type.
|
String |
toString()
Converts JavaEE profile version value to
String . |
static JavaEEProfile |
toValue(String name)
Returns a
JavaEEProfile with a value represented by the
specified String . |
static JavaEEProfile |
toValue(String version,
String type)
Returns a
JavaEEProfile with a value represented by the
specified version and type
String s. |
static JavaEEProfile |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static JavaEEProfile[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final JavaEEProfile v1_2
public static final JavaEEProfile v1_3
public static final JavaEEProfile v1_4
public static final JavaEEProfile v1_5
public static final JavaEEProfile v1_6_web
public static final JavaEEProfile v1_6
public static final JavaEEProfile v1_7_web
public static final JavaEEProfile v1_7
public static final int length
public static final char TYPE_SEPARATOR
private static final Map<String,JavaEEProfile> stringValuesMap
String
values for backward String
conversion.private final JavaEEProfile.Version version
private final JavaEEProfile.Type type
private final String name
public static JavaEEProfile[] values()
for (JavaEEProfile c : JavaEEProfile.values()) System.out.println(c);
public static JavaEEProfile 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 nullprivate static String[] createNames(JavaEEProfile profile) throws ServerConfigException
profile
- JavaEE profile.ServerConfigException
- when JavaEE profile type is not recognized.public static JavaEEProfile toValue(String name)
JavaEEProfile
with a value represented by the
specified String
. The JavaEEProfile
returned
represents existing value only if specified String
matches any String
returned by toString
method.
Otherwise null
value is returned.
name
- Value containing JavaEEProfile
toString
representation.JavaEEProfile
value represented
by String
or null
if value
was not recognized.public static JavaEEProfile toValue(String version, String type)
JavaEEProfile
with a value represented by the
specified version
and type
String
s. The JavaEEProfile
returned
represents existing value only if specified String
matches any String
returned by toString
method.
Otherwise null
value is returned.
version
- Value containing JavaEEProfile
version
toString
representation.type
- Value containing JavaEEProfile
type
toString
representation.JavaEEProfile
value represented
by code>version and type
String
or null
if value was not recognized.public String toString()
String
.
toString
in class Enum<JavaEEProfile>
String
representation of the value of this object.public JavaEEProfile.Type getType()
Copyright © 2013. All Rights Reserved.