Package de.undercouch.citeproc
Enum BibliographyFileReader.FileFormat
- java.lang.Object
-
- java.lang.Enum<BibliographyFileReader.FileFormat>
-
- de.undercouch.citeproc.BibliographyFileReader.FileFormat
-
- All Implemented Interfaces:
Serializable,Comparable<BibliographyFileReader.FileFormat>
- Enclosing class:
- BibliographyFileReader
public static enum BibliographyFileReader.FileFormat extends Enum<BibliographyFileReader.FileFormat>
Supported file formats for bibliography files
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BIBTEXA BibTeX fileENDNOTEAn EndNote fileJSON_ARRAYAn array of CSL JSON objectsJSON_OBJECTA CSL JSON objectRISAn RIS fileUNKNOWNUnknown file formatYAMLA YAML document
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BibliographyFileReader.FileFormatvalueOf(String name)Returns the enum constant of this type with the specified name.static BibliographyFileReader.FileFormat[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
BIBTEX
public static final BibliographyFileReader.FileFormat BIBTEX
A BibTeX file
-
JSON_OBJECT
public static final BibliographyFileReader.FileFormat JSON_OBJECT
A CSL JSON object
-
JSON_ARRAY
public static final BibliographyFileReader.FileFormat JSON_ARRAY
An array of CSL JSON objects
-
YAML
public static final BibliographyFileReader.FileFormat YAML
A YAML document- Since:
- 1.1.0
-
ENDNOTE
public static final BibliographyFileReader.FileFormat ENDNOTE
An EndNote file
-
RIS
public static final BibliographyFileReader.FileFormat RIS
An RIS file
-
UNKNOWN
public static final BibliographyFileReader.FileFormat UNKNOWN
Unknown file format
-
-
Method Detail
-
values
public static BibliographyFileReader.FileFormat[] 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 (BibliographyFileReader.FileFormat c : BibliographyFileReader.FileFormat.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BibliographyFileReader.FileFormat 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
-
-