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

public abstract Class AbstractParamLayoutFormatter

extends Object
implements ParamLayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.ParamLayoutFormatter, org.jabref.logic.layout.LayoutFormatter
Known Direct Subclasses
org.jabref.logic.layout.format.Authors, org.jabref.logic.layout.format.IfPlural, org.jabref.logic.layout.format.Replace, org.jabref.logic.layout.format.WrapContent, org.jabref.logic.layout.format.WrapFileLinks
Imports
java.util.ArrayList, .List

This is an abstract implementation of ParamLayoutFormatter, which provides some functionality for the handling of argument strings.

Field Summary

Modifier and TypeField and Description
private static final char

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
private static void
addPart(List<String> parts, StringBuilder current)

private static void
handleEscapedCharacter(StringBuilder current, char currentChar)

protected static List<String>

Returns:

A list of strings representing the parts of the argument.
parseArgument
(String
The argument string.
arg
)

Parse an argument string and return the parts of the argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

SEPARATORback to summary
private static final char SEPARATOR

Constructor Detail

AbstractParamLayoutFormatterback to summary
protected AbstractParamLayoutFormatter()

Method Detail

addPartback to summary
private static void addPart(List<String> parts, StringBuilder current)
handleEscapedCharacterback to summary
private static void handleEscapedCharacter(StringBuilder current, char currentChar)
parseArgumentback to summary
protected static List<String> parseArgument(String arg)

Parse an argument string and return the parts of the argument. The parts are separated by commas, and escaped commas are reduced to literal commas.

Parameters
arg:String

The argument string.

Returns:List<String>

A list of strings representing the parts of the argument.