Enum CompilanceLevel
- java.lang.Object
-
- java.lang.Enum<CompilanceLevel>
-
- de.gwdg.metadataqa.marc.definition.CompilanceLevel
-
- All Implemented Interfaces:
Serializable,Comparable<CompilanceLevel>
public enum CompilanceLevel extends Enum<CompilanceLevel>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description MandatoryMandatoryIfApplicableOptional
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CompilanceLevelbyAbbreviation(String abbreviation)StringgetAbbreviation()StringgetLabel()static CompilanceLevelvalueOf(String name)Returns the enum constant of this type with the specified name.static CompilanceLevel[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MandatoryIfApplicable
public static final CompilanceLevel MandatoryIfApplicable
-
Mandatory
public static final CompilanceLevel Mandatory
-
Optional
public static final CompilanceLevel Optional
-
-
Method Detail
-
values
public static CompilanceLevel[] 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 (CompilanceLevel c : CompilanceLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CompilanceLevel 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
-
byAbbreviation
public static CompilanceLevel byAbbreviation(String abbreviation)
-
getLabel
public String getLabel()
-
getAbbreviation
public String getAbbreviation()
-
-