Class Definitions
| Class Name | V3BiFreeTextArray |
|---|---|
| Attributes | items: V3BiFreeTextBase[] |
| Methods | constructor(language: V3BiFreeTextBase) |
| getFreeText(reference: string): V3BiFreeTextBase | undefined | |
| getFreeTextbyLanguage(reference: string, language: string): string | |
| addFreeText(reference: string, translations: V3BiTranslationBase[]) : void |
| Class Name | V3BiFreeTextBase |
|---|---|
| Attributes | reference: stringtranslations: V3BiTranslationBase[] |
| Class Name | V3BiTranslationBase |
|---|---|
| Attributes | language: stringtext: string |
Constructor Method
| Requirement ID | Description |
|---|---|
| non-empty V3BiFreeText array | Given a non-empty V3BiFreeText array as parameter |
| empty V3BiFreeText array | Given an empty V3BiFreeText array as parameter |
getFreeText(reference) Method
| Requirement ID | Description |
|---|---|
| existing reference | Given an existing reference as parameter |
| non-existing reference | ‘undefined’ |
getFreeTextbyLanguage(reference, language) Method
| Requirement ID | Description |
|---|---|
| non existing reference | ‘unknown free text’ |
| non-existing language | a ‘unknown language’ |
| existing reference/language | the translation.text is returned |
addFreeText(reference, translations) Method
| Requirement ID | Description |
|---|---|
| existing reference | error is thrown ‘duplicate free text’ |
| non-existing reference | V3BiFreeTextBase is added to V3BiFreeTextArray.items |