public enum J2EEVersion extends java.lang.Enum<J2EEVersion>
Enum Constant and Description |
---|
J2EE12 |
J2EE13 |
J2EE14 |
JAVAEE5 |
RESIN |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
J2EE_NAMESPACE |
static java.lang.String |
JAVAEE_NAMESPACE |
static java.lang.String |
RESIN_NAMESPACE |
Modifier and Type | Method and Description |
---|---|
static J2EEVersion |
getJ2EEVersion(org.w3c.dom.Element top)
Return a J2EEVersion based on the namespace, the version attribute,
and the doctype.
|
abstract boolean |
hasFeaturesOf(J2EEVersion version)
Returns true if this version is equal to or more recent than the
passed version.
|
static J2EEVersion |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static J2EEVersion[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final J2EEVersion J2EE12
public static final J2EEVersion J2EE13
public static final J2EEVersion J2EE14
public static final J2EEVersion JAVAEE5
public static final J2EEVersion RESIN
public static final java.lang.String J2EE_NAMESPACE
public static final java.lang.String JAVAEE_NAMESPACE
public static final java.lang.String RESIN_NAMESPACE
public static J2EEVersion[] values()
for (J2EEVersion c : J2EEVersion.values()) System.out.println(c);
public static J2EEVersion 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 J2EEVersion getJ2EEVersion(org.w3c.dom.Element top)
top
- the top level element of a configuration file.public abstract boolean hasFeaturesOf(J2EEVersion version)