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

public Class RemoveEnclosingBracesFormatter

extends Formatter
Class Inheritance
Annotations
@NullMarked
Imports
org.jabref.logic.formatter.Formatter, org.jabref.logic.l10n.Localization, org.jspecify.annotations.NullMarked

Constructor Summary

AccessConstructor and Description
public

Method Summary

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

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

Returns:

true if at any index the brace count is negative.
hasNegativeBraceCount
(String
The string to check.
value
)

Check if a string at any point has had more ending } braces than opening { ones.

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

Constructor Detail

RemoveEnclosingBracesFormatterback to summary
public RemoveEnclosingBracesFormatter()

Method Detail

formatback to summary
public String format(String value)
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
hasNegativeBraceCountback to summary
private boolean hasNegativeBraceCount(String value)

Check if a string at any point has had more ending } braces than opening { ones. Will e.g. return true for the string "DNA} text {EPA"

Parameters
value:String

The string to check.

Returns:boolean

true if at any index the brace count is negative.