Package org.jboss.as.logging
Enum KnownModelVersion
- java.lang.Object
-
- java.lang.Enum<KnownModelVersion>
-
- org.jboss.as.logging.KnownModelVersion
-
- All Implemented Interfaces:
Serializable,Comparable<KnownModelVersion>
public enum KnownModelVersion extends Enum<KnownModelVersion>
Known model versions for the logging extension.- Author:
- James R. Perkins
-
-
Enum Constant Summary
Enum Constants Enum Constant Description VERSION_1_5_0VERSION_2_0_0VERSION_3_0_0VERSION_4_0_0VERSION_5_0_0VERSION_6_0_0VERSION_7_0_0VERSION_8_0_0VERSION_9_0_0
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ModelVersiongetModelVersion()The model version.booleanhasTransformers()Returnstrueif transformers should be registered against the model version.static KnownModelVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static KnownModelVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
VERSION_1_5_0
public static final KnownModelVersion VERSION_1_5_0
-
VERSION_2_0_0
public static final KnownModelVersion VERSION_2_0_0
-
VERSION_3_0_0
public static final KnownModelVersion VERSION_3_0_0
-
VERSION_4_0_0
public static final KnownModelVersion VERSION_4_0_0
-
VERSION_5_0_0
public static final KnownModelVersion VERSION_5_0_0
-
VERSION_6_0_0
public static final KnownModelVersion VERSION_6_0_0
-
VERSION_7_0_0
public static final KnownModelVersion VERSION_7_0_0
-
VERSION_8_0_0
public static final KnownModelVersion VERSION_8_0_0
-
VERSION_9_0_0
public static final KnownModelVersion VERSION_9_0_0
-
-
Method Detail
-
values
public static KnownModelVersion[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (KnownModelVersion c : KnownModelVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static KnownModelVersion valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
hasTransformers
public boolean hasTransformers()
Returnstrueif transformers should be registered against the model version.- Returns:
trueif transformers should be registered, otherwisefalse
-
getModelVersion
public ModelVersion getModelVersion()
The model version.- Returns:
- the model version
-
-