Verified Owner
Top Description Fields Constructors Methods
org.jabref.logic.formatter.bibtexfields

public Class RemoveWordEnclosingAndOuterEnclosingBracesFormatter

extends Formatter
Class Inheritance
Annotations
@NullMarked
Imports
java.util.StringJoiner, org.jabref.logic.formatter.Formatter, org.jabref.logic.l10n.Localization, org.jabref.logic.util.strings.StringUtil, org.jspecify.annotations.NullMarked

Removes start and end brace both at the complete string and at beginning/end of a word

E.g.,

Field Summary

Modifier and TypeField and Description
private static final RemoveEnclosingBracesFormatter

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
format(String input)

public String
getDescription()

Implements abstract org.jabref.logic.formatter.Formatter.getDescription.

Returns a description of the formatter.

public String
getExampleInput()

Implements abstract org.jabref.logic.formatter.Formatter.getExampleInput.

Returns an example input string of the formatter.

public String
getKey()

Implements abstract org.jabref.logic.formatter.Formatter.getKey.

Returns a unique key for the formatter that can be used for its identification

public String
getName()

Implements abstract org.jabref.logic.formatter.Formatter.getName.

Returns a human readable name of the formatter usable for e.g. in the GUI

private boolean
properBrackets(String s)

Returns: true iff the brackets in s are properly paired

Inherited from org.jabref.logic.formatter.Formatter:
equalsformathashCode

Field Detail

REMOVE_ENCLOSING_BRACES_FORMATTERback to summary
private static final RemoveEnclosingBracesFormatter REMOVE_ENCLOSING_BRACES_FORMATTER

Constructor Detail

RemoveWordEnclosingAndOuterEnclosingBracesFormatterback to summary
public RemoveWordEnclosingAndOuterEnclosingBracesFormatter()

Method Detail

formatback to summary
public String format(String input)
Annotations
@Override
getDescriptionback to summary
public String getDescription()

Implements abstract org.jabref.logic.formatter.Formatter.getDescription.

Doc from org.jabref.logic.formatter.Formatter.getDescription.

Returns a description of the formatter.

Annotations
@Override
getExampleInputback to summary
public String getExampleInput()

Implements abstract org.jabref.logic.formatter.Formatter.getExampleInput.

Doc from org.jabref.logic.formatter.Formatter.getExampleInput.

Returns an example input string of the formatter. This example is used as input to the formatter to demonstrate its functionality

Annotations
@Override
getKeyback to summary
public String getKey()

Implements abstract org.jabref.logic.formatter.Formatter.getKey.

Doc from org.jabref.logic.formatter.Formatter.getKey.

Returns a unique key for the formatter that can be used for its identification

Annotations
@Override
getNameback to summary
public String getName()

Implements abstract org.jabref.logic.formatter.Formatter.getName.

Doc from org.jabref.logic.formatter.Formatter.getName.

Returns a human readable name of the formatter usable for e.g. in the GUI

Annotations
@Override
properBracketsback to summary
private boolean properBrackets(String s)
Returns:boolean

true iff the brackets in s are properly paired