generateTestData generate numberOfEntries test string of length between minLen and maxLen and for each string generate in addition numberofSimilarEntries similar strings.
Get all the files in the directory (file) specified and its sub
directories sourcepath is the start path of file (to determine the
absolute pathname for a file
getCombinedLanguageCodeFromShortLanguageCode return the combined language code from a short language looking like this "ab" -> "ab Abkhazian"
Method uses hash table lanlongtable to get the correct language.
getInstance return an OpenTMSProperties property instance; only one per process based on a property file; if OpenTMSInstance = null create an OpenTMSProperties
getLongLanguageCodeFromShortLanguageCode return the long language code from a short language looking like this "ab" -> "Abkhazian"
Method uses hash table lanlongtable to get the correct language.
getMonoLingualObjectsAsVector Method takes a language code (independent
of lower / upper case) and returns the MonoLingualObjects of a specific
language of the MultiLingualObject as a vector
getMonoLingualObjectsAsVector Method takes a language code (independent
of lower / upper case) and returns the MonoLingualObjects of a specific
language of the MultiLingualObject as a vector
getMonoLingualObjectsAsVector Method takes an array of language codes
(independent of lower / upper case) and returns the MonoLingualObjects
for the specific languages of the MultiLingualObject as a vector
getOpenTMSDatabases returns all the existing OpenTMS data sources based
on the OpenTMS Property "dataSourceConfigurationsFile"
It uses the function String configfile =
OpenTMSProperties.getInstance().getOpenTMSProperty
("dataSourceConfigurationsFile"); to determine the configuration file
getOpenTMSDatabasesWithType returns all the existing OpenTMS data sources
together with its type based on the OpenTMS Property
"dataSourceConfigurationsFile"
It uses the function String configfile =
OpenTMSProperties.getInstance().getOpenTMSProperty
("dataSourceConfigurationsFile"); to determine the configuration file
Example where tmxDatabases is a Vector(String[])
String name = tmxDatabases.get(i)[0];
String type = tmxDatabases.get(i)[1];
getShortLanguageCodeFromCombinedTable return the short language code for a language looking like this "Abkhazian ab"
Method uses hash table languagecombinedtable to get the correct language.
getShortLanguageCodeFromLongLanguageCode return the short language code from a long language looking like this "Abkhazian" -> "ab"
Method uses hash table lanshorttable to get the correct language.
getsubElementFromElementAttributeNameValue get the (sub) element with
string name subElementName of an element where the subelement has an
attribute with name attributeName and an attribute value of
attributeValue
Example:
<prop-group name="MULTI-624649fa-7e65-42ee-928d-aa2b10b12f27"><prop prop-value="creationid">1233c020bc55054_klemens</prop><prop prop-value="usagecount">0</prop><prop prop-value="entrynumber">21477</prop><prop prop-value="datatype">125447</prop><prop prop-value="changeid">1233c020bc55054_klemens</prop></prop-group>
getsubElementFromElementAttributeNameValue(prop-group, "prop", "prop-value", "creation-id") will return <prop prop-value="creationid">1233c020bc55054_klemens</prop>
getsubElementFromElementAttributeNameValueRegExp get the (sub) element
with string name subElementName of an element where the subelement has an
attribute with name attributeName and an attribute value of
attributeValue which is a regular expression
Example:
<prop-group name="MULTI-624649fa-7e65-42ee-928d-aa2b10b12f27"><prop prop-value="creationid">1233c020bc55054_klemens</prop><prop prop-value="usagecount">0</prop><prop prop-value="entrynumber">21477</prop><prop prop-value="datatype">125447</prop><prop prop-value="changeid">1233c020bc55054_klemens</prop></prop-group>
getsubElementFromElementAttributeNameValue(prop-group, "prop", "prop-value", "$creation.*") will return <prop prop-value="creationid">1233c020bc55054_klemens</prop>