SAP ABAP Class CL_XLFT_XLIFF_TRANS_IMPORT (Imports translations of an XLIFF)
Hierarchy
☛
SAP_BASIS (Software Component) SAP Basis Component
⤷
BC-DOC-TTL (Application Component) Translation Tools
⤷
SLXE_XLFT (Package) XLIFF 1.2 Translation
⤷
⤷
Properties
| Class | CL_XLFT_XLIFF_TRANS_IMPORT | |
| Short Description | Imports translations of an XLIFF | |
| Super Class | ||
| Instantiability of a Class | 0 | Private |
| Final |
General Data
| Message Class | ||
| Program status | ||
| Category | 0 | |
| Package | SLXE_XLFT | XLIFF 1.2 Translation |
| Created | 20110512 | SAP |
| Last change | 20130531 | SAP |
| Shared Memory-enabled | ||
| Fixed point arithmetic | ||
| Unicode checks active |
Forward declarations
| # | Type group / Object type | Type | Type Description |
|---|---|---|---|
| 1 | Type group use (TYPE-POOLS tp) | Type group use (TYPE-POOLS tp) |
Interfaces
Class CL_XLFT_XLIFF_TRANS_IMPORT has no interface implemented.
Friends
Class CL_XLFT_XLIFF_TRANS_IMPORT has no friend class.
Attributes
| # | Attribute | Level | Visibility | Read only | Typing | Associated Type | Initial Value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | Static Attribute | Private | Object reference (TYPE REF TO) | IF_XLF_DESERIALIZER | XLIFF deserializer | 20110512 | |||
| 2 | Static Attribute | Private | Type reference (TYPE) | STRING | 20110512 | ||||
| 3 | Instance attribute | Private | Type reference (TYPE) | LXECUSTMNR | Translation Area | 20110512 | |||
| 4 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20110512 | ||||
| 5 | Instance attribute | Private | Type reference (TYPE) | LXEOBJNAME | Object name | 20110516 | |||
| 6 | Instance attribute | Private | Type reference (TYPE) | ABAP_BOOL | 20110516 | ||||
| 7 | Instance attribute | Private | Type reference (TYPE) | XSTRING | 20110512 |
Methods
| # | Method | Level | Visibility | Method type | Description | Created on |
|---|---|---|---|---|---|---|
| 1 | Static method | Public | Constructor | CLASS_CONSTRUCTOR | 20110512 | |
| 2 | Instance method | Private | Method | 20110512 | ||
| 3 | Instance method | Private | Method | 20110512 | ||
| 4 | Instance method | Private | Method | 20110512 | ||
| 5 | Instance method | Private | Method | 20110512 | ||
| 6 | Instance method | Private | Constructor | CONSTRUCTOR | 20110512 | |
| 7 | Instance method | Private | Method | 20110516 | ||
| 8 | Instance method | Private | Method | 20110512 | ||
| 9 | Instance method | Private | Method | 20110512 | ||
| 10 | Static method | Public | Method | Imports the translations of an XLIFF | 20110512 | |
| 11 | Instance method | Private | Method | 20110512 | ||
| 12 | Instance method | Private | Method | 20130621 | ||
| 13 | Instance method | Private | Method | 20110512 |
Events
Class CL_XLFT_XLIFF_TRANS_IMPORT has no event.
Types
| # | Type | Visibility | Typing | Associated Type | Description | Created on | Type Source |
|---|---|---|---|---|---|---|---|
| 1 | S_EXISTING_ST | Private | See coding | Existing short texts | 20110512 | BEGIN OF s_existing_st,
textkey TYPE xlft_shortkey,
text TYPE lxeunitlin,
username TYPE syuname,
timestamp TYPE timestamp,
END OF s_existing_st
|
|
| 2 | S_ORG_ST_DATA | Private | See coding | Original short-text data | 20110512 | BEGIN OF s_org_st_data,
textkey TYPE xlft_shortkey,
counter TYPE xlft_counter,
texttype TYPE lxetexttype,
maxlength TYPE lxeunitmlt,
END OF s_org_st_data
|
|
| 3 | S_TRANS_ST_DATA | Private | See coding | Translation short-text data | 20110512 | BEGIN OF s_trans_st_data,
textkey TYPE xlft_shortkey,
text TYPE lxeunitlin,
END OF s_trans_st_data
|
|
| 4 | T_EXISTING_ST | Private | See coding | 20110512 | t_existing_st TYPE HASHED TABLE OF s_existing_st WITH UNIQUE KEY textkey
|
||
| 5 | T_ORG_ST_DATA | Private | See coding | 20110512 | t_org_st_data TYPE HASHED TABLE OF s_org_st_data WITH UNIQUE KEY textkey
|
||
| 6 | T_TRANS_ST_DATA | Private | See coding | 20110512 | t_trans_st_data TYPE HASHED TABLE OF s_trans_st_data WITH UNIQUE KEY textkey
|
Method Signatures
Method CLASS_CONSTRUCTOR Signature
Method CLASS_CONSTRUCTOR on class CL_XLFT_XLIFF_TRANS_IMPORT has no parameter.
Method CLASS_CONSTRUCTOR on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method COLLECT_TRANSLATIONS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ORG_ST_DATA | Call by reference | Type reference (TYPE) | T_ORG_ST_DATA | 20110512 | ||||
| 2 | TRANS_ST_DATA | Call by reference | Type reference (TYPE) | T_TRANS_ST_DATA | 20110512 | ||||
| 3 | XLIFF | Call by reference | Object reference (TYPE REF TO) | IF_XLF_ELEM_XLIFF | XLIFF document | 20110512 |
Method COLLECT_TRANSLATIONS on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method COLLECT_TRANS_GROUP Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | GROUP | Call by reference | Object reference (TYPE REF TO) | IF_XLF_ELEM_GROUP | Group | 20110512 | |||
| 2 | ORG_ST_DATA | Call by reference | Type reference (TYPE) | T_ORG_ST_DATA | 20110512 | ||||
| 3 | TRANS_ST_DATA | Call by reference | Type reference (TYPE) | T_TRANS_ST_DATA | 20110512 |
Method COLLECT_TRANS_GROUP on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method COLLECT_TRANS_SUS Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ORG_ST_DATA | Call by reference | Type reference (TYPE) | T_ORG_ST_DATA | 20110512 | ||||
| 2 | SUS | Call by reference | Type reference (TYPE) | TXLF_STRUCTURAL_UNIT | Table of structural units | 20110512 | |||
| 3 | TRANS_ST_DATA | Call by reference | Type reference (TYPE) | T_TRANS_ST_DATA | 20110512 |
Method COLLECT_TRANS_SUS on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method COLLECT_TRANS_TU Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | ORG_ST_DATA | Call by reference | Type reference (TYPE) | T_ORG_ST_DATA | 20110512 | ||||
| 2 | TRANS_ST_DATA | Call by reference | Type reference (TYPE) | T_TRANS_ST_DATA | 20110512 | ||||
| 3 | TRANS_UNIT | Call by reference | Object reference (TYPE REF TO) | IF_XLF_ELEM_TRANS_UNIT | Translation unit | 20110512 |
Method COLLECT_TRANS_TU on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method CONSTRUCTOR Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | AREA | Call by reference | Type reference (TYPE) | LXECUSTMNR | Translation Area | 20110512 | |||
| 2 | OBJECT_NAME | Call by reference | Type reference (TYPE) | LXEOBJNAME | Optional object name | 20110516 | |||
| 3 | OVERWRITE_EXISTING_TRANS | Call by reference | Type reference (TYPE) | ABAP_BOOL | True if existing translations should be overwritten | 20110512 | |||
| 4 | PASSED_OBJECT_NAME_OVERRIDES | Call by reference | Type reference (TYPE) | ABAP_BOOL | True if passed object name should override embedded metadata | 20110516 | |||
| 5 | XLIFF | Call by reference | Type reference (TYPE) | XSTRING | XLIFF to import translations of | 20110512 |
Method CONSTRUCTOR on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method DETERMINE_OBJECT_NAME Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | OBJECT_NAME | Value transfer | Type reference (TYPE) | LXEOBJNAME | Object name | 20110516 | |||
| 2 | XLIFF | Call by reference | Object reference (TYPE REF TO) | IF_XLF_ELEM_XLIFF | XLIFF document | 20110516 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Base class for XLIFF Translation exceptions | 20110516 |
Method DETERMINE_TARGET_LANG Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | TARGET_LANG | Value transfer | Type reference (TYPE) | LXEISOLANG | Translation Language | 20110512 | |||
| 2 | XLIFF | Call by reference | Object reference (TYPE REF TO) | IF_XLF_ELEM_XLIFF | XLIFF document | 20110512 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Base class for XLIFF Translation exceptions | 20110512 |
Method IMPORT Signature
Method IMPORT on class CL_XLFT_XLIFF_TRANS_IMPORT has no parameter.
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Base class for XLIFF Translation exceptions | 20110512 |
Method IMPORT_TRANSLATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | AREA | Call by reference | Type reference (TYPE) | LXECUSTMNR | Target translation area | 20110512 | |||
| 2 | OBJECT_NAME | Call by reference | Type reference (TYPE) | LXEOBJNAME | Optional object name | 20110516 | |||
| 3 | OVERWRITE_EXISTING_TRANS | Call by reference | Type reference (TYPE) | ABAP_BOOL | True if existing translations should be overwritten | 20110512 | |||
| 4 | PASSED_OBJECT_NAME_OVERRIDES | Call by reference | Type reference (TYPE) | ABAP_BOOL | True if the passed object name is to overwrite the embedded | 20110516 | |||
| 5 | XLIFF | Call by reference | Type reference (TYPE) | XSTRING | XLIFF with translation to be imported | 20110512 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Base class for XLIFF Translation exceptions | 20110512 |
Method IS_EMPTY_TEXT Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FRAGMENTS | Call by reference | Type reference (TYPE) | TXLF_TEXT_FRAGMENT | Table of text fragments | 20110512 | |||
| 2 | IS_EMPTY_TEXT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20110512 |
Method IS_EMPTY_TEXT on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method IS_VALID_STEXT_TRANSLATION Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | FRAGMENTS | Call by reference | Type reference (TYPE) | TXLF_TEXT_FRAGMENT | Table of text fragments | 20130621 | |||
| 2 | IS_SHORT_TEXT | Value transfer | Type reference (TYPE) | ABAP_BOOL | 20130621 |
Method IS_VALID_STEXT_TRANSLATION on class CL_XLFT_XLIFF_TRANS_IMPORT has no exception.
Method PARSE_XLIFF Signature
| # | Type | Parameter | Pass Value | Optional | Typing Method | Associated Type | Default value | Description | Created on |
|---|---|---|---|---|---|---|---|---|---|
| 1 | XLIFF | Value transfer | Object reference (TYPE REF TO) | IF_XLF_ELEM_XLIFF | XLIFF document | 20110512 |
| # | Exception | Resumable | Description | Created on |
|---|---|---|---|---|
| 1 | Base class for XLIFF Translation exceptions | 20110512 |
History
| Last changed by/on | SAP | 20130531 |
| SAP Release Created in | 731 |