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

public Class AuthorLastFirstAbbreviator

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

Uses as input the fields (author or editor) in the LastFirst format.

This formater enables to abbreviate the authors name in the following way:

Ex: Someone, Van Something will be abbreviated as Someone, V.S.

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.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

AuthorLastFirstAbbreviatorback to summary
public AuthorLastFirstAbbreviator()

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
See Also
org.jabref.logic.layout.LayoutFormatter#format(java.lang.String)