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

public Class CompositeFormat

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
java.util.Arrays, .List, org.jabref.logic.layout.LayoutFormatter

A layout formatter that is the composite of the given Formatters executed in order.

Field Summary

Modifier and TypeField and Description
private final List<LayoutFormatter>

Constructor Summary

AccessConstructor and Description
public
CompositeFormat()

If called with this constructor, this formatter does nothing.

public
public

Method Summary

Modifier and TypeMethod and Description
public String
format(String 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

formattersback to summary
private final List<LayoutFormatter> formatters

Constructor Detail

CompositeFormatback to summary
public CompositeFormat()

If called with this constructor, this formatter does nothing.

CompositeFormatback to summary
public CompositeFormat(LayoutFormatter first, LayoutFormatter second)
CompositeFormatback to summary
public CompositeFormat(LayoutFormatter[] formatters)

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.

Annotations
@Override