OpenKeyWord
Build Tag: jenkins-DoxyGen_EN-107, Build ID: 2015-03-08_20-51-06
|
OKW_Const manages the language dependent OKW-Constants. More...
Public Member Functions | |
string | Boolean2YesNo (bool fpbTrueOrFalse) |
Converts true/false language dependent to yes/no. More... | |
string | ConcatHSEP (List< string > fpLs_ListString2Concat) |
The method connects single strings of a list-string to one string and separates it with the constant ${HSEP}. More... | |
string | ConcatSEP (List< string > fpLs_ListString2Concat) |
Method combines single strings of a liststring to one string and separates it with the constant ${SEP}. More... | |
string | ConcatVSEP (List< string > fpLs_ListString2Concat) |
Method combines single strings of a liststring to a single string and separates it with the constant ${VSEP}. More... | |
string | GetConst4Internalname (string fpsInternalname) |
Method detects the value for Const for the internalname and the actual selected language. More... | |
string | GetOKWConst4Internalname (string fpsInternalname) |
Method detects for Internalname and the actual selected language the value for OKWConst. More... | |
List< string > | SplitHSEP (string fpsString2Split) |
Method separates a string and converts it to a liststring. The cut is set at the constant ${HSEP}. More... | |
List< string > | SplitSEP (string fpsString2Split) |
Method separates a string and converts it to a liststring. The cut is set at the constant ${SEP}. More... | |
List< string > | SplitVSEP (string fps_String2Split) |
Method devides a string and converts it to a liststring. The cut is set at the constant ${VSEP}. More... | |
bool | YesNo2Boolean (string fpsYesOrNo) |
Converts a Language dependent Yes/No to bool. More... | |
Properties | |
static OKWConst | Instance OKWConst.xml" [get] |
Gets the only instance of this class. The instance of this class. More... | |
Private Member Functions | |
OKWConst () | |
Private constructor without a parameter like singleton pattern: initializes the class OKWConst. More... | |
Private Attributes | |
OKWLanguage | CL = OKWLanguage.Instance |
The actual language settings (current language) are administrated in the classe OKWLanguage. http://en.wikipedia.org/wiki/ISO_3166-1. More... | |
LogMessenger | MyLM = null |
Reference to OKW.Log.LogMessenger. More... | |
XPathDocument | MyXPathDocument |
XPathNavigator | MyXPathNavigator |
string | OKWConst_xml = string.Empty |
Contains the complete path and filename referring to the file OKW_Const.xml. More... | |
Static Private Attributes | |
static readonly OKWConst | instance = new OKWConst() |
OKW_Const manages the language dependent OKW-Constants.
Designpattern: Singleton - the Highlander-Principle is valid "There only can be one!".
This means there is only one instance of this class, which is responsible for reading the news. The language dependent values belonging to this class are in the file "OKWConst.xml"
This class itself is an OKW-fundamental-class and returns no logs for its own.
Terms
Here is a list of identifier / name / term created to be used in this class.
Internal Name | Const (EN) | OKW_Const (EN) |
---|---|---|
SEP | SEP | ${SEP} |
VSEP | VSEP | ${VSEP} |
HSEP | HSEP | ${HSEP} |
DELETE | DELETE | ${DELETE} |
EMPTY | EMPTY | ${EMPTY} |
IGNORE | IGNORE | ${IGNORE} |
YES | YES | - |
NO | NO | - |
CHECKED | CHECKED | - |
UNCHECKED | UNCHECKED | - |
LEFTBRACE | ${ | - |
RIGHTBRACE | } | - |
(Zeile 22) Zukünftige Funktionalität: Nachricht auf einen anderen Tag weiterverlinken.
(Zeile 41) Tabellenüberschrift wird als Verlinkung gelesen und blau auf blau dargestellt - OKWConst/DE
(Zeile 75) Tabellenüberschrift wird als Verlinkung gelesen und blau auf blau dargestellt - OKWConst/EN
|
private |
Private constructor without a parameter like singleton pattern: initializes the class OKWConst.
The initialization is effected as follows:
Example:
A | System.IO.FileNotFoundException is triggered, if the file OKWConst.xml is not found. |
string OKW.OKWConst.Boolean2YesNo | ( | bool | fpbTrueOrFalse | ) |
Converts true/false language dependent to yes/no.
fps_YesOrNo | true or false |
string OKW.OKWConst.ConcatHSEP | ( | List< string > | fpLs_ListString2Concat | ) |
The method connects single strings of a list-string to one string and separates it with the constant ${HSEP}.
The method is working language dependent meaning that the separation constant is used in the actual language.
fpLs_ListString2Concat | List-String, to be combined to a single string. Example: {"Value1", "Value2", "Value3", "Value4"} |
string OKW.OKWConst.ConcatSEP | ( | List< string > | fpLs_ListString2Concat | ) |
Method combines single strings of a liststring to one string and separates it with the constant ${SEP}.
The method works language dependent using the separation constant with the actual language.
fpLs_ListString2Concat | Liststring to be combined to one string. Example: {"Value1", "Value2", "Value3", "Value4"} |
string OKW.OKWConst.ConcatVSEP | ( | List< string > | fpLs_ListString2Concat | ) |
Method combines single strings of a liststring to a single string and separates it with the constant ${VSEP}.
The method is working language dependent using the separation constant of the actual language
fpLs_ListString2Concat | List-String, to be combined to a single string. Example: {"Value1", "Value2", "Value3", "Value"} |
string OKW.OKWConst.GetConst4Internalname | ( | string | fpsInternalname | ) |
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
the language dependent constant.
If | no value is found for fpsInternalname, then the exception OKWConst4InternalnameNotFoundException is triggered. |
fpsInternalname | Internal identifier of a constant, which is converted to a language dependent constant. (Internalname -> Const) |
string OKW.OKWConst.GetOKWConst4Internalname | ( | string | fpsInternalname | ) |
Method detects for Internalname and the actual selected language the value for OKWConst.
GetOKWConst4Internalname selects for
the language dependent constant and places it in brackets.
Internalname | OKW_Const (DE) |
---|---|
SEP | ${SEP} |
VSEP | ${VSEP} |
HSEP | ${HSEP} |
DELETE | ${DELETE} |
EMPTY | ${EMPTY} |
IGNORE | ${IGNORE} |
Example: "$IGNORE" == GetOKWConst4Internalname("IGNORE")
fpsInternalname | Internalname of constant. Example: "IGNORE" |
List<string> OKW.OKWConst.SplitHSEP | ( | string | fpsString2Split | ) |
Method separates a string and converts it to a liststring. The cut is set at the constant ${HSEP}.
The method is working language dependent meaning it is used the separation constant of the actual language.
fpsString2Split | One or more values, which are divided with ${HSEP}. Example: "Value1${HSEP}Value2${HSEP}Value2" |
List<string> OKW.OKWConst.SplitSEP | ( | string | fpsString2Split | ) |
Method separates a string and converts it to a liststring. The cut is set at the constant ${SEP}.
The method is working language dependant meaning it is used the separation constant of the actual language.
fpsString2Split | One or more values, which are separated with ${SEP}. Example: "Value1${SEP}Value2${SEP}Value2" |
List<string> OKW.OKWConst.SplitVSEP | ( | string | fps_String2Split | ) |
Method devides a string and converts it to a liststring. The cut is set at the constant ${VSEP}.
The method is working language dependent meaning it is used the separation constant of the actual language.
fpsString2Split | One or more values, which are separated with ${VSEP}. Example: "value1${VSEP}value2${VSEP}value2" |
bool OKW.OKWConst.YesNo2Boolean | ( | string | fpsYesOrNo | ) |
Converts a Language dependent Yes/No to bool.
e.g. Language is "en": Input "Yes" returns true
e.g. Language is "en": Input "No" returns false
e.g. Language is "de": Input "Yes" or "No" - raises the exception OKWNotAllowedValueException.
fpsYesOrNo | Language dependent Yes/No |
|
private |
The actual language settings (current language) are administrated in the classe OKWLanguage.
http://en.wikipedia.org/wiki/ISO_3166-1.
|
private |
Reference to OKW.Log.LogMessenger.
|
private |
Contains the complete path and filename referring to the file OKW_Const.xml.
|
staticget |
Gets the only instance of this class.
The instance of this class.