Enum MarcFormat
- java.lang.Object
-
- java.lang.Enum<MarcFormat>
-
- de.gwdg.metadataqa.marc.definition.MarcFormat
-
- All Implemented Interfaces:
Serializable,Comparable<MarcFormat>
public enum MarcFormat extends Enum<MarcFormat>
For a compreensive list of MARC serialization formats see https://jorol.github.io/processing-marc/#/serializations
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALEPHSEQISOLINE_SEPARATEDMARC_LINEMARC_MAKERPICA_NORMALIZEDPICA_PLAINPICA_XMLXML
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MarcFormatbyCode(String code)StringgetCode()StringgetLabel()static MarcFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static MarcFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ISO
public static final MarcFormat ISO
-
XML
public static final MarcFormat XML
-
ALEPHSEQ
public static final MarcFormat ALEPHSEQ
-
LINE_SEPARATED
public static final MarcFormat LINE_SEPARATED
-
MARC_LINE
public static final MarcFormat MARC_LINE
-
MARC_MAKER
public static final MarcFormat MARC_MAKER
-
PICA_PLAIN
public static final MarcFormat PICA_PLAIN
-
PICA_NORMALIZED
public static final MarcFormat PICA_NORMALIZED
-
PICA_XML
public static final MarcFormat PICA_XML
-
-
Method Detail
-
values
public static MarcFormat[] 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 (MarcFormat c : MarcFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static MarcFormat 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 MarcFormat byCode(String code)
-
getCode
public String getCode()
-
getLabel
public String getLabel()
-
-