Package org.mariuszgromada.math.mxparser
Class StringModel
- java.lang.Object
-
- org.mariuszgromada.math.mxparser.StringModel
-
public final class StringModel extends Object
A class containing definitions of text strings that are with respect to the user's language.- Version:
- 5.2.0
- Author:
- Mariusz Gromada
MathParser.org - mXparser project page
mXparser on GitHub
INFIMA place to purchase a commercial MathParser.org-mXparser software license
info@mathparser.org
ScalarMath.org - a powerful math engine and math scripting language
Scalar Lite
Scalar Pro
MathSpace.pl
Buy me a cup of coffee via donation
or support me purchasing the license via ORDER Page , or INFIMA online store
-
-
Constructor Summary
Constructors Constructor Description StringModel()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringResources
getStringResources()
Gets currently used user-specific text resource object.static void
print()
Displays the user-defined text resources used and the effect of their use to generate descriptions of the parser elements on the console.static void
printDescriptions()
Prints to the console the result of applying user-specific text resources to generate parser description and objects.static void
setDefaultStringResources()
Sets default string resources.static void
setStringResources(StringResources stringResources)
Sets a user-specific text resource object.
-
-
-
Method Detail
-
setStringResources
public static void setStringResources(StringResources stringResources)
Sets a user-specific text resource object. Using this object, you can provide your own text model or your own translations. If the provided string resources object is null, no change will be done and the current object will still be used.- Parameters:
stringResources
- A user-specific text resource object- See Also:
StringResources
-
setDefaultStringResources
public static void setDefaultStringResources()
Sets default string resources.- See Also:
StringResources
-
getStringResources
public static StringResources getStringResources()
Gets currently used user-specific text resource object.- Returns:
- Currently used StringResources
-
print
public static void print()
Displays the user-defined text resources used and the effect of their use to generate descriptions of the parser elements on the console.
-
printDescriptions
public static void printDescriptions()
Prints to the console the result of applying user-specific text resources to generate parser description and objects. The method can help with debugging when creating your own translations.
-
-