public enum StandardFormatters extends Enum<StandardFormatters> implements ReferenceFormatter
| Enum Constant and Description |
|---|
BIBTEX
Format references as BibTeX.
|
HTML
Format as an HTML fragment
|
REFERENCE_ANNOTATION
Format as a
Reference annotation for inclusion in code |
STRING
Format as a pretty string
|
| Modifier and Type | Method and Description |
|---|---|
String |
format(Collection<Reference> refs)
Format a multiples references
|
abstract String |
format(Reference ref)
Format a single reference
|
protected abstract String |
formatRefs(Iterable<Reference> refs) |
static StandardFormatters |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StandardFormatters[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StandardFormatters BIBTEX
public static final StandardFormatters REFERENCE_ANNOTATION
Reference annotation for inclusion in codepublic static final StandardFormatters STRING
public static final StandardFormatters HTML
public static StandardFormatters[] values()
for (StandardFormatters c : StandardFormatters.values()) System.out.println(c);
public static StandardFormatters valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullprotected abstract String formatRefs(Iterable<Reference> refs)
public abstract String format(Reference ref)
ReferenceFormatterformat in interface ReferenceFormatterref - the Reference to formatReferencepublic String format(Collection<Reference> refs)
ReferenceFormatterformat in interface ReferenceFormatterrefs - the References to formatReferences