public class ConversionTools
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static java.lang.String |
addLeadingZerosToNumericID(java.lang.String inputString,
int desiredLength)
Method adds leading zeros to a numeric string based on a specified total length
|
static java.lang.String |
cutOffZeros(java.lang.String argument)
Cuts of the leading zeros for document ID display and document item display.
|
static java.lang.String |
getDateFormat(java.util.Locale locale)
Retrieves the date format pattern string for a given locale.
|
static java.lang.String |
getDecimalPointFormat(java.util.Locale locale)
Retrieves the pattern string for the decimal point representation, using Java standard functionality.
|
static char |
getDecimalSeparator(java.util.Locale locale)
Gets the decimal separator for a given locale, using Java standard functionality.
|
static char |
getGroupingSeparator(java.util.Locale locale)
Gets the grouping separator for a given locale, using Java standard functionality.
|
static java.lang.String |
getR3LanguageCode(java.lang.String langu)
Return the single character r3 language code for a given String.
|
static java.text.SimpleDateFormat |
getSDF(java.util.Locale locale)
Retrieves a new instance of SimpleDateFormat for the given locale.
|
public static java.lang.String getDecimalPointFormat(java.util.Locale locale)
locale - the session localepublic static char getDecimalSeparator(java.util.Locale locale)
locale - the current localepublic static char getGroupingSeparator(java.util.Locale locale)
locale - the current localepublic static java.lang.String getDateFormat(java.util.Locale locale)
locale - the session loacalepublic static java.text.SimpleDateFormat getSDF(java.util.Locale locale)
locale - public static java.lang.String cutOffZeros(java.lang.String argument)
argument - the String with leading zerospublic static java.lang.String getR3LanguageCode(java.lang.String langu)
langu - a String valuethe language in R/3 format. Case sensitive! valuepublic static java.lang.String addLeadingZerosToNumericID(java.lang.String inputString,
int desiredLength)
inputString - contains the numeric StringdesiredLength - specifies the total desired length of the stringCopyright © 2018 SAP SE. All Rights Reserved.