public class OKW_Const_Sngltn extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
OKW_Const_Sngltn()
\~german
Privater Konstruktor ohne Parameter im Entwurfsmuster
Singelton initialisiert die Klasse OKW_Const.
|
| Modifier and Type | Method and Description |
|---|---|
String |
Boolean2YesNo(Boolean fpbTrueOrFalse)
\~german
Konvertiert WAHR/FALSCH (true/false) sprachabhängig nach
"Ja"/"Nein" (Yes/No) \param fpbTrueOrFalse WAHR oder FALSCH \return "Ja"
für true
"Nein" für false \~english Converts true/false language dependent to yes/no \param fps_YesOrNo true or false \return "yes" in case of true "no" in case of false \~ |
String |
ConcatHSEP(ArrayList<String> fpLs_ListString2Concat)
\~german
Methode _verbindet_ die einzelne Strings eines
List<Strings> zu einem string und trennt
diese mit der Konstante ${HSEP}. |
String |
ConcatSEP(ArrayList<String> fpLs_ListString2Concat)
\~german
Methode _verbindet_ die einzelne Strings eines
List<Strings> zu einem string und trennt
diese mit der Konstante ${SEP}. |
String |
ConcatVSEP(ArrayList<String> fpLs_ListString2Concat)
\~german
Methode _verbindet_ die einzelnen Strings eines
List<Strings> zu einem string und trennt
diese mit der Konstante ${VSEP}. |
String |
GetConst4Internalname(String fpsInternalname)
\~german
Methode ermittelt für __Internalname__ und der aktuell eingestellten Sprache den Wert für __Const__.
|
static OKW_Const_Sngltn |
getInstance()
\~german
Holt die einzige Instanz dieser Klasse.
|
String |
GetOKWConst4Internalname(String fpsInternalname)
\~german
Methode ermittelt für __Internalname__ und der aktuell
eingestellten Sprache den Wert für __OKWConst__.
|
ArrayList<String> |
SplitHSEP(String fpsString2Split)
\~german
Methode trennt einen String und wandelt diesen in eine
ListString um.
|
ArrayList<String> |
SplitSEP(String fpsString2Split)
\~german
Methode trennt einen String und wandelt diesen in einen
ListString um.
|
ArrayList<String> |
SplitVSEP(String fps_String2Split)
\~german
Methode trennt einen String und wandelt diesen in einen
ListString um.
|
Boolean |
YesNo2Boolean(String fpsYesOrNo)
\~german
Konvertiert sprachabhängig Ja/Nein zu einem Booleanean
Wert (Wahr/Falsch).
Beispiele: Sprache ist "de": Eingabe "JA" -> Ausgabe Wahr Sprache ist "de": Eingabe "NEIN" - Ausgabe Falsch Sprache ist "en": Eingabe "JA" oder "NEIN" - löst die Exception OKWNotAllowedValueException aus. |
protected OKW_Const_Sngltn()
A - _System.IO.FileNotFoundException_ is triggered, if the file
OKW_Const.xml is not found.
\~public static OKW_Const_Sngltn getInstance()
public String Boolean2YesNo(Boolean fpbTrueOrFalse) throws XPathExpressionException
XPathExpressionExceptionpublic String ConcatHSEP(ArrayList<String> fpLs_ListString2Concat) throws XPathExpressionException
List<Strings> zu einem string und trennt
diese mit der Konstante ${HSEP}.
Die Methode arbeitet sprachabhängig, womit die Trennkonstante in der
aktuellen Sprache verwendet wird.fpLs_ListString2Concat - List-String, der zu einem String verbunden
werden soll. Beispiel: {"Wert1", "Wert2", "Wert3", "Wert4"}fpLs_ListString2Concat - List-String, to be combined to a single
string.XPathExpressionExceptionpublic String ConcatSEP(ArrayList<String> fpLs_ListString2Concat) throws XPathExpressionException
List<Strings> zu einem string und trennt
diese mit der Konstante ${SEP}.
Die Methode arbeitet sprachabhängig, d.h. es wird die Trennkonstante der
aktuellen Sprache verwendet.fpLs_ListString2Concat - List-String, die zu einem String verbunden
werden soll. Beispiel: {"Wert1", "Wert2", "Wert3", "Wert4"}fpLs_ListString2Concat - ListString to be combined to one string.
Example: {"Value1", "Value2", "Value3", "Value4"}XPathExpressionExceptionpublic String ConcatVSEP(ArrayList<String> fpLs_ListString2Concat) throws XPathExpressionException
List<Strings> zu einem string und trennt
diese mit der Konstante ${VSEP}.
Die Methode arbeitet sprachabhänging, d.h es wird die Trennkonstante der
aktuellen Sprache verwendet.fpLs_ListString2Concat - List-String, der zu einem String verbunden
werden soll. Beispiel: {"Wert1", "Wert2", "Wert3", "Wert4"}fpLs_ListString2Concat - List-String, to be combined to a single
string. Example: {"Value1", "Value2", "Value3", "Value"}XPathExpressionExceptionpublic String GetConst4Internalname(String fpsInternalname)
fpsInternalname - Interner Bezeichner einer Konstante, die in eine
sprachabhängige Konstante umgestetzt wird. (_Internalname_ -> _Const_)fpsInternalname - Internal identifier of a constant, which is
converted to a language dependent constant. (_Internalname_ -> _Const_)Wird - für fpsInternalname kein Wert gefunden, dann wird die
Ausnahme OKWConst4InternalnameNotFoundException ausgelöst.
\~english
Method detects the value for __Const__ for the __internalname__ and the actual selected language.
GetConst4Internalname is the core method of this class and detects for
If - no value is found for fpsInternalname, then the exception
OKWConst4InternalnameNotFoundException is triggered.public String GetOKWConst4Internalname(String fpsInternalname)
"$IGNORIEREN" == GetOKWConst4Internalname("IGNORE")fpsInternalname - Internalname der Konstante. Beispiel: "IGNORE"fpsInternalname - Internalname of constant. Example: "IGNORE""$IGNORE" == GetOKWConst4Internalname("IGNORE")public ArrayList<String> SplitHSEP(String fpsString2Split) throws XPathExpressionException
fpsString2Split - Ein oder mehrere Werte, die mit ${HSEP} getrennt
sind.fpsString2Split - One or more values, which are divided with
${HSEP}.XPathExpressionExceptionOKWConst::ConcatHSEP()
OKWConst::ConcatVSEP()
OKWConst::SplitSEP()
OKWConst::SplitVSEP(),
OKWConst::ConcatHSEP()
OKWConst::ConcatVSEP()
OKWConst::SplitSEP()
OKWConst::SplitVSEP()public ArrayList<String> SplitSEP(String fpsString2Split) throws XPathExpressionException
fpsString2Split - Ein oder mehrere Werte, die mit ${SEP} getrennt
sind.fpsString2Split - One or more values, which are separated with
${SEP}.XPathExpressionExceptionOKWConst::ConcatHSEP()
OKWConst::ConcatVSEP()
OKWConst::SplitHSEP()
OKWConst::SplitVSEP(),
OKWConst::ConcatHSEP()
OKWConst::ConcatVSEP()
OKWConst::SplitHSEP()
OKWConst::SplitVSEP()public ArrayList<String> SplitVSEP(String fps_String2Split) throws XPathExpressionException
fpsString2Split - Ein oder mehrer Werte, die mit ${VSEP} getrennt
sind.fpsString2Split - One or more values, which are separated with
${VSEP}.XPathExpressionExceptionOKWConst::ConcatHSEP()
OKWConst::ConcatVSEP()
OKWConst::SplitHSEP()
OKWConst::SplitSEP(),
OKWConst::ConcatHSEP()
OKWConst::ConcatVSEP()
OKWConst::SplitHSEP()
OKWConst::SplitSEP()public Boolean YesNo2Boolean(String fpsYesOrNo) throws XPathExpressionException
fpsYesOrNo - sprachabhängig Ja/NeinfpsYesOrNo - Language dependent Yes/NoOKWNotAllowedValueException - wird ausgelöst, wenn nicht eine
sprachabhängiges Ja/Nein als Parameter eingegeben wird.XPathExpressionExceptionCopyright © 2021 OpenKeyWord. All rights reserved.