public final class ConverterSettings extends Object
MathMLConverter.
Instance of this class is passed between processing classes and methods
and offers:
false,true.| Modifier and Type | Method and Description |
|---|---|
static ConverterSettings |
getInstance()
Instance of this singleton class.
|
Properties |
getLocalization()
Returns current
Properties file used to access localized messages. |
NumberFormat |
getNumberFormat()
Returns current number format.
|
NumberTransformer |
getNumberTransformer()
Return
NumberTransformer instance. |
String |
getProperty(String key)
Returns localized message retrieved from current localization settings
getLocalization(). |
Set<String> |
getSupportedLanguages()
Returns set of language codes, that are supported by the converter.
|
boolean |
isCanonicalize()
Indicates whether canonicalizion should be applied on input data.
|
boolean |
isReplaceSpaces()
Indicates whether spaces in strings received from localization file should
be replaced with underscores.
|
void |
setCanonicalize(boolean canonicalize)
Sets the value that indicates whether canonicalization should be applied.
|
void |
setLocalization(Properties localization)
Set
Properties file used to access localized messages. |
void |
setNumberFormat(NumberFormat numberFormat)
Sets current number format.
|
void |
setNumberTransformer(NumberTransformer numberTransformer)
Sets
NumberTransformer instance. |
void |
setReplaceSpaces(boolean replaceSpaces)
Sets the value that indicates whether spaces should be replaced or not.
|
public static ConverterSettings getInstance()
public Properties getLocalization()
Properties file used to access localized messages.Properties file used to access localized messages.public void setLocalization(Properties localization)
Properties file used to access localized messages.localization - New Properties file used to access localized messages.public NumberTransformer getNumberTransformer()
NumberTransformer instance.NumberTransformer instance.public void setNumberTransformer(NumberTransformer numberTransformer)
NumberTransformer instance.numberTransformer - NumberTransformer instance.public NumberFormat getNumberFormat()
NumberTransformer.getNumberFormat()
method.public void setNumberFormat(NumberFormat numberFormat)
NumberTransformer#setNumberFormat(cz.muni.fi.mathml.mathml2text.transformer.numbers.NumberFormat)
method.numberFormat - New number format.public String getProperty(String key)
getLocalization().key - Message key.public boolean isReplaceSpaces()
true if spaces should be replaced, false otherwise.replaceSpacespublic void setReplaceSpaces(boolean replaceSpaces)
replaceSpaces - Indicator whether spaces should be replaced or not.replaceSpacespublic boolean isCanonicalize()
true, if canonicalizion should be applied, false otherwise.public void setCanonicalize(boolean canonicalize)
canonicalize - Indicator whether canonicalization should be applied.Copyright © 2013. All Rights Reserved.