OpenKeyWord  Build Tag: jenkins-DoxyGen_EN-107, Build ID: 2015-03-08_20-51-06
 All Classes Namespaces Functions Variables Properties Pages
OKW.OKWDocu Class Reference
Collaboration diagram for OKW.OKWDocu:

Public Member Functions

string GetKWForCurrentLanguage (string KeyWord)
 Gets the KeyWordName for Language. More...
 

Properties

static OKWDocu Instance [get]
 Holt die einzige Instanz dieser Klasse. More...
 

Private Member Functions

 OKWDocu ()
 This constructor has no Parameter and uses the default values for the config-file and Actual/default language(=EN) More...
 
string ReadKeyWordName (string KeyWordSymbol)
 This method gets the Keywordname depending an the Language. More...
 

Private Attributes

OKWLanguage AL = OKWLanguage.Instance
 
string File_okwdocu_xml = OKW_Ini.Instance.OKW_Enviroment.File_okwdocu_xml
 
XPathDocument MyXPathDocument
 
XPathNavigator MyXPathNavigator
 Provides a cursor model for navigating and editing XML data. More...
 

Static Private Attributes

static readonly OKWDocu instance = new OKWDocu()
 Instance des Singelton.
 

Detailed Description

Author
Zoltán Hrabovszki
Date
2014.05.28

Constructor & Destructor Documentation

OKW.OKWDocu.OKWDocu ( )
private

This constructor has no Parameter and uses the default values for the config-file and Actual/default language(=EN)

This klass is a Singelton. -> Konstuctor is Private! Use Instance to get the Instanc of this Class.

115  {
116  if (!System.IO.File.Exists(this.File_okwdocu_xml))
117  {
118  System.Console.WriteLine("= End Logmessenger.Logmessenger() with exception!");
119  throw new FileNotFoundException("File not found! '" + this.File_okwdocu_xml + "'");
120  }
121  else
122  {
123  this.MyXPathDocument = new XPathDocument(this.File_okwdocu_xml);
124  this.MyXPathNavigator = this.MyXPathDocument.CreateNavigator();
125  }
126  }

Member Function Documentation

string OKW.OKWDocu.GetKWForCurrentLanguage ( string  KeyWord)

Gets the KeyWordName for Language.

Parameters
KeyWordName of
Returns
156  {
157  string lvs_Return = string.Empty;
158 
159  lvs_Return = this.ReadKeyWordName(KeyWord);
160 
161  return lvs_Return;
162  }
string OKW.OKWDocu.ReadKeyWordName ( string  KeyWordSymbol)
private

This method gets the Keywordname depending an the Language.

If the given KeyWordSybol isn´t definden in

Parameters
KeyWordSymbolSymbolName of Keyword the Message for the given language or default language if given languae does not exist
Returns
172  {
173  Log.Logger.Instance.LogFunctionStartDebug(this.GetType().FullName + ".ReadKeyWordName", "KeyWordSymbol", KeyWordSymbol);
174 
175  string lvs_temp = "!!" + KeyWordSymbol;
176 
177  string lvsXPath = "//okwentry[@keyword='" + KeyWordSymbol + "']//keyword/" + this.AL.Language;
178 
179  Log.Logger.Instance.LogPrintDebug(lvsXPath);
180 
181  XPathNodeIterator iter = this.MyXPathNavigator.Select(lvsXPath);
182 
183  while (iter.MoveNext())
184  {
185  lvs_temp = iter.Current.Value;
186  }
187 
188  Log.Logger.Instance.LogFunctionEndDebug(lvs_temp);
189 
190  return lvs_temp;
191  }

Member Data Documentation

XPathDocument OKW.OKWDocu.MyXPathDocument
private
Todo:

TODO: JN: Rranslation

Author
Zoltan Hrabovszki
Date
2013_12_09
XPathNavigator OKW.OKWDocu.MyXPathNavigator
private

Provides a cursor model for navigating and editing XML data.

See: http://msdn.microsoft.com/de-de/library/system.xml.xpath.xpathnavigator%28v=vs.110%29.aspx

Author
Zoltan Hrabovszki
Date
2013_12_09

Property Documentation

OKWDocu OKW.OKWDocu.Instance
staticget

Holt die einzige Instanz dieser Klasse.

The instance.


The documentation for this class was generated from the following file: