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

public Class XMLChars

extends Object
implements LayoutFormatter
Class Inheritance
All Implemented Interfaces
org.jabref.logic.layout.LayoutFormatter
Imports
java.util.HashMap, .Map, org.jabref.logic.layout.LayoutFormatter, org.jabref.logic.util.strings.XmlCharsMap

Changes {\^o} or {\^{o}} to ?

Field Summary

Modifier and TypeField and Description
private static final Map<String, String>
private boolean[]
private static final XmlCharsMap

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static String
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.

private String
private String
restFormat(String toFormat)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

ASCII_TO_XML_CHARSback to summary
private static final Map<String, String> ASCII_TO_XML_CHARS
forceReplaceback to summary
private boolean[] forceReplace
XML_CHARSback to summary
private static final XmlCharsMap XML_CHARS

Constructor Detail

XMLCharsback to summary
public XMLChars()

Method Detail

firstFormatback to summary
private static String firstFormat(String s)
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
removeLatexCommandsback to summary
private String removeLatexCommands(String fieldText)
restFormatback to summary
private String restFormat(String toFormat)