Package pt.cienciavitae.ns.common_enum
Enum LanguageLevelEnum
- java.lang.Object
-
- java.lang.Enum<LanguageLevelEnum>
-
- pt.cienciavitae.ns.common_enum.LanguageLevelEnum
-
- All Implemented Interfaces:
Serializable,Comparable<LanguageLevelEnum>
public enum LanguageLevelEnum extends Enum<LanguageLevelEnum>
Java class for language-level-enum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="language-level-enum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="A1"/> <enumeration value="A2"/> <enumeration value="B1"/> <enumeration value="B2"/> <enumeration value="C1"/> <enumeration value="C2"/> </restriction> </simpleType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description A_1PT: Utilizador elementar (A1) / EN: Beginner (A1)A_2PT: Utilizador elementar (A2) / EN: Elementary (A2)B_1PT: Utilizador independente (B1) / EN: Intermediate (B1)B_2PT: Utilizador independente (B2) / EN: Upper intermediate (B2)C_1PT: Utilizador proficiente (C1) / EN: Advanced (C1)C_2PT: Utilizador proficiente (C2) / EN: Proficiency (C2)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LanguageLevelEnumfromValue(String v)Stringvalue()static LanguageLevelEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static LanguageLevelEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
A_1
public static final LanguageLevelEnum A_1
PT: Utilizador elementar (A1) / EN: Beginner (A1)
-
A_2
public static final LanguageLevelEnum A_2
PT: Utilizador elementar (A2) / EN: Elementary (A2)
-
B_1
public static final LanguageLevelEnum B_1
PT: Utilizador independente (B1) / EN: Intermediate (B1)
-
B_2
public static final LanguageLevelEnum B_2
PT: Utilizador independente (B2) / EN: Upper intermediate (B2)
-
C_1
public static final LanguageLevelEnum C_1
PT: Utilizador proficiente (C1) / EN: Advanced (C1)
-
C_2
public static final LanguageLevelEnum C_2
PT: Utilizador proficiente (C2) / EN: Proficiency (C2)
-
-
Method Detail
-
values
public static LanguageLevelEnum[] 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 (LanguageLevelEnum c : LanguageLevelEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LanguageLevelEnum 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
-
value
public String value()
-
fromValue
public static LanguageLevelEnum fromValue(String v)
-
-