Enum MarcVersion
- java.lang.Object
-
- java.lang.Enum<MarcVersion>
-
- de.gwdg.metadataqa.marc.definition.MarcVersion
-
- All Implemented Interfaces:
Serializable,Comparable<MarcVersion>
public enum MarcVersion extends Enum<MarcVersion>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarcVersionbyCode(String code)StringgetCode()StringgetLabel()static MarcVersionvalueOf(String name)Returns the enum constant of this type with the specified name.static MarcVersion[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
MARC21
public static final MarcVersion MARC21
-
BL
public static final MarcVersion BL
-
DNB
public static final MarcVersion DNB
-
FENNICA
public static final MarcVersion FENNICA
-
GENT
public static final MarcVersion GENT
-
NKCR
public static final MarcVersion NKCR
-
OCLC
public static final MarcVersion OCLC
-
SZTE
public static final MarcVersion SZTE
-
UNIMARC
public static final MarcVersion UNIMARC
-
-
Method Detail
-
values
public static MarcVersion[] 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 (MarcVersion c : MarcVersion.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarcVersion 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
-
byCode
public static MarcVersion byCode(String code)
-
getCode
public String getCode()
-
getLabel
public String getLabel()
-
-