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

public Class NotFoundFormatter

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
org.jabref.logic.l10n.Localization, org.jabref.logic.layout.LayoutFormatter

Formatter used to signal that a formatter hasn't been found. This can be used for graceful degradation if a layout uses an undefined format.

Field Summary

Modifier and TypeField and Description
private final String

Constructor Summary

AccessConstructor and Description
public

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.

public String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

notFoundback to summary
private final String notFound

Constructor Detail

NotFoundFormatterback to summary
public NotFoundFormatter(String notFound)

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
getNotFoundback to summary
public String getNotFound()