Top Description Fields Constructors Methods
org.jabref.logic.layout.format

public Class DOICheck

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
java.net.URI, org.jabref.logic.layout.LayoutFormatter, org.jabref.logic.preferences.DOIPreferences, org.jabref.model.entry.identifier.DOI

Used to fix [ 1588028 ] export HTML table DOI URL.

Will prepend "http://doi.org/" or the DOI url with a custom base URL defined in the DOIPreferences if only DOI and not an URL is given.

Field Summary

Modifier and TypeField and Description
private final DOIPreferences

Constructor Summary

AccessConstructor and Description
public
DOICheck(DOIPreferences doiPreferences)

Method Summary

Modifier and TypeMethod and Description
public String
format(String
The text to layout.
fieldText
)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

doiPreferencesback to summary
private final DOIPreferences doiPreferences

Constructor Detail

DOICheckback to summary
public DOICheck(DOIPreferences doiPreferences)

Method Detail

formatback to summary
public String format(String fieldText)

Implements org.jabref.logic.layout.LayoutFormatter.format.

Doc from org.jabref.logic.layout.LayoutFormatter.format.

Failure Mode:

Formatters should be robust in the sense that they always return some relevant string.

If the formatter can detect an invalid input it should return the original string otherwise it may simply return a wrong output.

Parameters
fieldText:String

The text to layout.

Returns:String

The layouted text.

Annotations
@Override